RevTeX 4: sectioning commands inside widetext
Using: LyX v. 2.3.7. Class: REVTeX 4.1, options: aip, reprint RevTeX allows sections inside widetext regions. However, with LyX, section, subsection and Wide Text are all accessed by the drop-down menu and each command/environment has its own context on the LyX screen. The only way I've found was to insert the \subsection{} command inside an ERT within the widetext environment. Any other workaround? -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion failure for older format
On terça-feira, 21 de junho de 2022 13:27:12 -03 José Abílio Matos wrote: > > This is problematic on so many levels. :-) > Notice that your python2 is using python3's standard library and so the > disaster is unavoidable. > > Something is wrong with your python2 installation because that should not > happen in a regular Fedora installation. I am not even sure if that could > have been caused by setting PYTHONPATH... > > I have just tested a similar call like the one above and it works for me. > > One way to solve the problem in lyx is to install the > python-unversioned-command package. > That will make /usr/bin/python point to python3 because currently lyx is > getting python2 as the python version and thus the error that you get. But > again in this case this is just a workaround the problem that you have. > > I hope that this helps. There was indeed a conflict between two python distributions installed in my system: the distribution from Fedora and Intel python. This is also related to my other thread (Support for xfig graphics). I removed the intel distribution and now it seems that everything is working as it should. Thank you. -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Support for xfig graphics (Solved)
On terça-feira, 21 de junho de 2022 14:26:39 -03 Rudi Gaelzer wrote: > Indeed there is: > > 14:20:04.072: Previewing ... > 14:20:04.076: (buffer-view) > 14:20:04.085: python -tt "/usr/share/lyx/scripts/fig_copy.py" > "/home/rudi/temp/ ufrgs/Coulomb_Law.fig" "/tmp/lyx_tmpdir.DFELBfPgzbQo/ > lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig" > 14:20:04.104: Fatal Python error: init_sys_streams: can't initialize sys > standard streams > > There's a fatal error with python. Is that it? > I had to force the standard distribution for python in .bashrc with: > alias python='/usr/bin/python3' > otherwise the standard would fall to the Intel distribution. It seems that the problem was indeed a mix-up with different python distributions. Got rid of the Intel python distribution and now the internal conversion of Xfig files is working again. -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Support for xfig graphics
On terça-feira, 21 de junho de 2022 13:09:22 -03 Jean-Marc Lasgouttes wrote: > Le 21/06/2022 à 15:12, Rudi Gaelzer a écrit : > > Running: > > Fedora Core 36 on x64 box > > KDE Plasma Version: 5.24.5 > > LyX Version 2.3.6.1 (provided by Fedora repo) > > > > It seems that the support for xfig figures is not working on my system. > > See the attached files. > > The Xfig file sets the TeX flag for text. > > Hi again, > > Do you have "transfig" installed? Affirmative. > > Are there some relevant error messages in the Messages pane? > > JMarc Indeed there is: 14:20:04.072: Previewing ... 14:20:04.076: (buffer-view) 14:20:04.085: python -tt "/usr/share/lyx/scripts/fig_copy.py" "/home/rudi/temp/ ufrgs/Coulomb_Law.fig" "/tmp/lyx_tmpdir.DFELBfPgzbQo/ lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig" 14:20:04.104: Fatal Python error: init_sys_streams: can't initialize sys standard streams 14:20:04.104: Python runtime state: core initialized 14:20:04.104: Traceback (most recent call last): 14:20:04.104: File "/usr/lib64/python3.10/io.py", line 54, in 14:20:04.105: ImportError: cannot import name 'text_encoding' from 'io' (unknown location) 14:20:04.117: pdflatex "tes_xfig01.tex" 14:20:04.190: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=pdflatex) 14:20:04.190: restricted \write18 enabled. 14:20:04.223: entering extended mode 14:20:04.223: (./tes_xfig01.tex 14:20:04.223: LaTeX2e <2020-10-01> patch level 4 14:20:04.226: L3 programming layer <2021-05-07> Systemcall.cpp (276): Systemcall: 'python -tt "/usr/share/lyx/scripts/ fig_copy.py" "/home/rudi/temp/ufrgs/Coulomb_Law.fig" "/tmp/ lyx_tmpdir.DFELBfPgzbQo/lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"' finished with exit code 1 14:20:04.560: Error while exporting format: PDF (pdflatex)Systemcall.cpp (276): Systemcall: 'pdflatex "tes_xfig01.tex"' finished with exit code 1 14:20:59.489: Automatic save done. 14:21:37.497: (dialog-toggle progress) There's a fatal error with python. Is that it? I had to force the standard distribution for python in .bashrc with: alias python='/usr/bin/python3' otherwise the standard would fall to the Intel distribution. -- Rudi Gaelzer Instituto de Física Departamento de Física Universidade Federal do Rio Grande do Sul Av. Bento Gonçalves, 9500 Caixa Postal 15051 91501-970 Porto Alegre - RS Fone: (51) 3308-6474 FAX: (51) 3308-7286 Usuário de Linux registrado # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Support for xfig graphics
Running: Fedora Core 36 on x64 box KDE Plasma Version: 5.24.5 LyX Version 2.3.6.1 (provided by Fedora repo) It seems that the support for xfig figures is not working on my system. See the attached files. The Xfig file sets the TeX flag for text. In the LyX window, the preview fails. When I try to view the document with pdflatex, the following error message appears in the latex log: ! LaTeX Error: File `0_home_rudi_temp_ufrgs_Coulomb_Law.pdftex_t' not found. Exporting to LaTeX (pdflatex) generates the attached file. Running on terminal: rudi@stix|ufrgs>pdflatex tes_xfig01.tex gives the expected error: ! LaTeX Error: File `Coulomb_Law.pdftex_t' not found. because the exporter did not generate the Coulomb_Law.pdftex_t file. -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 %% LyX 2.3.6.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[brazil]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{color} \usepackage{graphicx} \makeatletter %% LyX specific LaTeX commands. %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.} \makeatother \usepackage{babel} \begin{document} \begin{center} \resizebox{0.7\textwidth}{!}{\input{Coulomb_Law.pdftex_t}} \par\end{center} \end{document} tes_xfig01.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion failure for older format
On segunda-feira, 20 de junho de 2022 13:44:47 -03 José Abílio Matos wrote: > > If you still have the 508 format file could you run: > > $ python2 /usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx > > /dev/null > > The only difference from your command above is that this is running the > converter using python2 and not python3 as it happens above. > > For what is worth this will ignore the output because we are only interest > in any error that can occur... > > > I'm running the installation from the rpm packages distributed for Fedora > > core 35/36. > > I am using the same and I am the package maintainer for those packages. :-) Hits a snag right at the beginning: rudi@stix|Plasma Modes>python2 /usr/share/lyx/lyx2lyx/lyx2lyx Langmuir- lyxformat-508.lyx > /dev/null File "/usr/lib64/python3.10/site.py", line 93 print(message, file=sys.stderr) ^ SyntaxError: invalid syntax -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion failure for older format
On terça-feira, 21 de junho de 2022 07:06:28 -03 Jean-Marc Lasgouttes wrote: > Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit : > > That successfully converted the original to format 544, which the frontend > > was able to render. > > Is it possible that there's a bug in the automagic process? > > I'm running the installation from the rpm packages distributed for Fedora > > core 35/36. > > Could it be that you have another version of lyx2lyx on your path? > > JMarc lyx2lyx is a python script. How do I verify the path for python scripts? It is not in the paths for shell commands, listed by which. According to dnf, the only package that provides lyx2lyx is lyx-common-2.3.6.1-6.fc36.noarch $>dnf provides */lyx2lyx Last metadata expiration check: 23:33:59 ago on seg 20 jun 2022 10:00:57. lyx-common-2.3.6.1-6.fc36.noarch : Common files of lyx Repo: @System Matched from: Filename: /usr/share/lyx/lyx2lyx Filename: /usr/share/lyx/lyx2lyx/lyx2lyx lyx-common-2.3.6.1-6.fc36.noarch : Common files of lyx Repo: fedora Matched from: Filename: /usr/share/lyx/lyx2lyx Filename: /usr/share/lyx/lyx2lyx/lyx2lyx -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion failure for older format
On sexta-feira, 17 de junho de 2022 08:08:04 -03 José Abílio Matos wrote: > On Wednesday, 15 June 2022 18.19.22 WEST Rudi Gaelzer wrote: > > I'm trying to open a LyX file with an older format: > > \lyxformat 508 > > > > But I got the error message: LyX: Conversion script failed > > It says that the lyx2lyx script failed to convert the document. > > > > What should I do in this case? > > Rudi, > this should not ever happen, but bugs do happen. > > Just as Paul said you can run lyx2lyx from the command line to see where the > problem occurs and tell us here. > > If you want you can send the file by private mail and I will look in to this > issue directly. > > Best regards, That worked. First, I copied the original .lyx to -lyxformat-508.lyx, then ran $>/usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx -o .lyx That successfully converted the original to format 544, which the frontend was able to render. Is it possible that there's a bug in the automagic process? I'm running the installation from the rpm packages distributed for Fedora core 35/36. -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Conversion failure for older format
I'm trying to open a LyX file with an older format: \lyxformat 508 But I got the error message: LyX: Conversion script failed It says that the lyx2lyx script failed to convert the document. What should I do in this case? -- Rudi Gaelzer Physics Institute - UFRGS BRAZIL Registered Linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Problems related to custom AMS theorem module
On sexta-feira, 23 de julho de 2021 14:40:38 -03 Paul A. Rubin wrote: > I've never used the totcount package, so this may be a bit naive. For the > first issue, can you set the relevant counters (equation@totc) etc. to zero > with a \setcounter command in the preamble of the first document and, if > so, will that zero value get written to the file if no environments of the > type counted appear in the document? That would (hopefully) give you a > starting value for the next document. I thought about doing something similar, but not exactly as you suggested. With the totcount package, you register the counters you'll want to keep track of with the command \regtotcounter[auxfile=first.tc]{thm} It will create the counter thm@totc and set it to zero. At the end of the run, the counter is written into first.tc. I need to inform this file name to the next lecture. So, inside the InPreamble, I registered all theorem counters. Two problems resulted: 1. I got a lot of "!Missing number, treated as zero" errors. 2. If I ignore the errors and finish the processing, the total counters of the environs that are NOT used in the document are written in first.tc, all set to zero, as expected. The problem is that the counters that ARE used are again incremented every time the file is processed until all cross-references are right. This time, I inserted the \setcounter{defn}{\totvalue{defn}} command in the *.inc file. > > For the second issue, can you wrap your preamble code in AtBeginDocument{} > and, if so, does that allow ams-theorem to load first and your code to > execute correctly? That seems to work. Thanks for pointing out the command. So, I inserted \regtotcounter[auxfile=\currfilebase.tc]{thm}, etc in the appropriate places in the *.inc file. The command \currfilebase comes from the currfile package. It just contains the base file name, without the extension. And then, if I know that in the next lecture the Definition and Exercise environs are used, inserting in the InPreamble \AtBeginDocument{\setcounter{defn}{\totvalue{defn}} \setcounter{xca}{\totvalue{xca}} } does the trick. The counters are set after all the rest of the preamble is processed. Thank you. Incidentally, in order to create locally the *.aux and *.tc files needed for cross-referencing, I have to first export the document to LaTeX and then manually run pdflatex --draftmode Is there a way to instruct Lyx to write certain auxiliary files into the local directory, instead of in /tmp/lyx_tmpdirxxx? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Problems related to custom AMS theorem module
This question is still related to the recent thread: https://www.mail-archive.com/lyx-users@lists.lyx.org/msg112228.html[1] I thought I got it right, but several unexpected problems came up and I'd like to have your opinion. What I want to do is the following: I'm preparing a series of lectures that will employ theorem-like environments. Several lectures are related to the same subject and so I want the enumeration of numbered things (equations, figures, theorems, examples, definitions, etc) in subsequent lectures to continue from the previous ones. In order to guarantee the correct sequence, I'm loading in the preamble the totcount package. For each counter employed in a given lecture, the totcount package creates a new counter (equation@totc, figure@totc, etc), which contains the last value of the counter. The values of these counters are then written in a specific file (call it previous.tc), which can be read in the subsequent lecture. Finally, by using \setcounter{}{} I can guarantee the desired continuation of the enumeration of things. For the native LaTeX counters (equation, figure, etc), I've been including all the necessary commands in an ERT with the layout InPreamble. For the native counters, this works all right because the counters are defined with the class and class packages, which are read before user-specific definitions incuded with the InPreamble layout. However, for the theorem-like environments, the implementation is more involved. The problems that are coming up are: 1. Say a given environment like theorem is only introduced from the second lecture. In this case, the file previous.tc will not contain the last value of the counter thm@totc, because there was no theorem in the first lecture. Hence, I cannot issue a \setcounter{thm}{} because in this case the number of the first theorem gets increased for each LyX/LaTeX compilation. This complicates the implementation of the custom theorem-bytpe module I've been tinkering with in my previous thread. Somehow I need to introduce instructions to read the previous.tc file and find out if the counter thm was previously employed. Only if there is a last value of thm@totc that I can \setvalue the counter. I'm not sure what will be the best way to implement this. Several posts I've been browsing through suggest the use of TeX natives like \newread, \openin \read, etc, and then use some package (like xstring) that identifies specific strings in each line read. Seems too much trouble for me. 2. Then I decided to dumb down my approach. I will only use \setvalue for those counters that I know are employed in the previous lecture, as I was doing so far with the native LaTeX counters. The problem now is that with the layout InPreamble, those instructions will be written before the ams-theorem module defines the thm counters. That is going to give errors. It seems that as of now there is no way to choose the ordering of the instructions contained in the layout InPreamble inside the document's preamble. This is discussed in this thread: https://www.mail-archive.com/lyx-users@lists.lyx.org/msg100172.html[2] Therefore, the only solution that I can imagine is to write the necessary instructions in the user-defined preamble accessible in Document Settings -> LaTeX Preamble This way, I guarantee the correct ordering of the instructions. Anyway, I just wanted to vent out my frustration that I was not smart enough to somehow automatize this process. This is an admittedly very specific problem, and I don't know if you think this can be of interest to the larger community. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 [1] https://www.mail-archive.com/lyx-users@lists.lyx.org/msg112228.html [2] https://www.mail-archive.com/lyx-users@lists.lyx.org/msg100172.html -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Customizing counters of theorem environments.
(Ditto here) Thanks for the reply, Paul. On quarta-feira, 21 de julho de 2021 17:40:48 -03 Paul A. Rubin wrote: > (Accidentally replied directly rather than to the list. Better late than > never?) > > I can see no reason to mess with the layout translations file. If your LyX > user interface uses a language other than English, just give your custom > theorem environment a layout name in that language. If your new environment > makes its way into the LyX distribution some day, then it will need > translations into all supported languages. > > As far as implementing a custom theorem-like environment, you need to (a) > figure out the LaTeX code to implement it and then (b) create a module file > (or use your hacked ...-bytype.module file) containing a LyX layout for it > (which will include the LaTeX code to be inserted into the preamble). > Mimicking what's already in the bytype module file (or, more precisely, in > one of the .inc files it uses) should get you there pretty easily. > > Paul I did just that, thanks. Since I want something quite specific, I created the new environment with the label only in Portuguese. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Customizing counters of theorem environments.
I would like to run by you my solution and ask another question. I copied the files theorems-ams-bytype.module and theorems-ams-bytype.inc into my local layouts directory (with new names), then edited them accordingly. For instance, in the .inc file, for the Lemma style, inside the Preamble EndPreamble field I included the line \renewcommand{\thelem}{\thearea-\arabic{lem}} \thearea being the prefix to the lemma counter. Did similar things for the other styles, then reconfigured LyX and voila! My customized module is accessible (and works as intended). I just don't know if this solution is sanctioned by you LyX developers... Now the question I want to ask. I want to create a new theorem-like environment. Reading through the Customization.lyx manual, I understand that the different translations for the names of the environs reside in the layouttranslations file. Looking into it, it says that # This file has been automatically generated by po/lyx_pot.py. # PLEASE MODIFY ONLY THE LAGUAGES HAVING NO .po FILE! If you want to regenerate # this file from the translations, run `make ../lib/layouttranslations' in po. # Python polib library is needed for building the output file. I confess I did not quite grasp the process. Do I have to create a local layouttranslations file containing the translations for the new environment name? Is there a more detailed guide for this procedure? On terça-feira, 20 de julho de 2021 20:20:41 -03 Rudi Gaelzer wrote: > Well, it seems that the solution is indeed via \renewtheorem. However, I > had to dig deep into the installation of AMS theorem to find the proper > names of the counters. So far, I've found \thethm, \thelem, \thedefn, etc. > I did not find a full list of counters, so if someone could point me out > where I can find such a list, I'd be grateful. > -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Customizing counters of theorem environments.
Well, it seems that the solution is indeed via \renewtheorem. However, I had to dig deep into the installation of AMS theorem to find the proper names of the counters. So far, I've found \thethm, \thelem, \thedefn, etc. I did not find a full list of counters, so if someone could point me out where I can find such a list, I'd be grateful. On terça-feira, 20 de julho de 2021 19:29:27 -03 Rudi Gaelzer wrote: > Hi there. > I'm using the module Theorems (AMS, Numbered by Type). > I would like to change the counters of theorem-like environs, adding a fixed > string in front of the number. Something like > > Theorem TGA-1 > Definition TGA-2 > etc > > Can I do that the usual way that is done for the standard LaTeX counters? > I mean, in ERT: > \renewcommand{\theequation}{TGA-\arabic{equation}} > I that case, I would need to know the names of the counters, but I can't > find them. > > Or is there another way? > Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Customizing counters of theorem environments.
Hi there. I'm using the module Theorems (AMS, Numbered by Type). I would like to change the counters of theorem-like environs, adding a fixed string in front of the number. Something like Theorem TGA-1 Definition TGA-2 etc Can I do that the usual way that is done for the standard LaTeX counters? I mean, in ERT: \renewcommand{\theequation}{TGA-\arabic{equation}} I that case, I would need to know the names of the counters, but I can't find them. Or is there another way? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Instant preview: different sizes in different situations
I feared that that would happen... Is there a way I can acquire a traceback of what's happening? On quinta-feira, 11 de março de 2021 13:43:13 -03 Paul A. Rubin wrote: > I cannot reproduce that here (LyX 2.3.6.1, Linux Mint 20, Qt 5.12.8, > TeXLive 2019). -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Instant preview: different sizes in different situations
Using: LyX v. 2.3.6.1 OS: Fedora Core 33 TeXLive v. 9 I noticed a weird behaviour for some time already with Instant Preview. In: Preferences -> Look & Feel -> Display -> Instant preview, if I set Preview size 1.2, then during the edition, when a given formula is rendered for the first time, the display size is OK. However, when I restart LyX and resume processing the text, the same formula is rendered with a much smaller size... very difficult to read. If I try to circumvent this problem by setting preview size to, say, 1.5, then on the first time the equation becomes huge, although after restart the new size is better than with the previous setting. Has anyone noticed this behaviour as well? I'd say this is a bug, but, I don't know... -- Rudi Gaelzer Instituto de Física Departamento de Física Universidade Federal do Rio Grande do Sul -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Auto-Correct and Delimiters Bug
On terça-feira, 8 de dezembro de 2020 20:22:04 -03 you wrote: > At the moment, the * thing works with paired delimiters, but it only > changes the first one, which is definitely a bug. It should obviously > change both. I also don't know how hard that would be. > > Riki > Indeed. It works separately for "[" and for "]". It also works separately for "[" and for ")", which is not a bad thing per se. About my idea of browsing through the variable-sized delimiters, should I put it on the wishlist? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Description of improvement in the user interface
Worked. Interesting development. I usually employ variable-sized delimiters, but often need to use \big, \Big, ... Another development that would be handy would be the possibility to browse through matched delimiters ( ), [ ], { }, | |, ... or to change them hierarchically using shortcuts. This way it would be much easier to work with nested expressions. On terça-feira, 8 de dezembro de 2020 15:42:00 -03 Richard Kimberly Heck wrote: > On 12/8/20 7:45 AM, Rudi Gaelzer wrote: > > Hi there. > > > > Where can I find a more detailed description of the following update > > listed in the announcement of LyX 2.3.6: > > > > > > > > Update autocorrect in mathed so that pressing '*' after a delimiter will > > > > cycle through all sizes. > > There's not one, but here's how it works: Enter math by pressing Ctrl-M > (say). Then hit "[". Now hit "*". This will take you through different > sizes of [. (If math auto-correct is off, this will not work, but you > should get a message on the status bar about how to enable it. Usually > by pressing "!".) > > Riki > > -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Description of improvement in the user interface
Hi there. Where can I find a more detailed description of the following update listed in the announcement of LyX 2.3.6: Update autocorrect in mathed so that pressing '*' after a delimiter will cycle through all sizes. Thanks -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: LyX + Beamer: continuing previous counters
I have found a solution to my question: the totcount[1] package. On quarta-feira, 5 de agosto de 2020 12:23:08 -03 Rudi Gaelzer wrote: > A question for TeXperts and LyXperts alike. > > In these times of coronavirus pandemic, all my teaching materiel is in the > process of being moved to cloud-based venues. > I'm using LyX/Beamer to prepare my lectures in presentation form, and in the > course of preparing a number of subsequent lectures, I came across a > problem related to cross-references that I wish to solve in an automatic > way. > > Say I prepare a given lecture as a Beamer presentation and number some > equations/figures/etc for future reference. > I'm using the xr package to reference labels created in other presentations, > but I also want to continue the counters in subsequent lectures. > The problem now poses as the following. How can I automatically continue > the counters in the next presentation? > > Should I include the different presentations as children of a master LyX > file? I did not try this possibility because I fear it would mess up the > individual tables of contents. > > Is there any LaTeX command/package that provides the last value of a counter > in a file, so that I can use it in another tex file? -- Rudi Gaelzer Instituto de Física Departamento de Física Universidade Federal do Rio Grande do Sul Av. Bento Gonçalves, 9500 Caixa Postal 15051 91501-970 Porto Alegre - RS Fone: (51) 3308-6474 FAX: (51) 3308-7286 Usuário de Linux registrado # 153741 [1] http://texdoc.net/pkg/totcount -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
LyX + Beamer: continuing previous counters
A question for TeXperts and LyXperts alike. In these times of coronavirus pandemic, all my teaching materiel is in the process of being moved to cloud-based venues. I'm using LyX/Beamer to prepare my lectures in presentation form, and in the course of preparing a number of subsequent lectures, I came across a problem related to cross-references that I wish to solve in an automatic way. Say I prepare a given lecture as a Beamer presentation and number some equations/figures/etc for future reference. I'm using the xr package to reference labels created in other presentations, but I also want to continue the counters in subsequent lectures. The problem now poses as the following. How can I automatically continue the counters in the next presentation? Should I include the different presentations as children of a master LyX file? I did not try this possibility because I fear it would mess up the individual tables of contents. Is there any LaTeX command/package that provides the last value of a counter in a file, so that I can use it in another tex file? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion error for Help files
Wow! José, did you just invented time travel? On sexta-feira, 5 de junho de 2020 01:06:19 -03 Richard Kimberly Heck wrote: > Please ignore the date in Help> About LyX That will be fixed. > > Speaking of which, José, you might want to rebuild > > Riki -- Rudi Gaelzer Instituto de Física Departamento de Física Universidade Federal do Rio Grande do Sul Av. Bento Gonçalves, 9500 Caixa Postal 15051 91501-970 Porto Alegre - RS Fone: (51) 3308-6474 FAX: (51) 3308-7286 Usuário de Linux registrado # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion error for Help files
Yep! That worked! Had to manually reconfigure first, though. Valeu José! On quinta-feira, 4 de junho de 2020 14:14:53 -03 José Abílio Matos wrote: > Oi Rudi, :-) > > > > lyx-2.3.5 is on updates testing: > > https://bodhi.fedoraproject.org/updates/FEDORA-2020-684cee3845 > > > > You can follow the instructions there to update: > > > > sudo dnf upgrade --enablerepo=updates-testing > --advisory=FEDORA-2020-684cee3845 > > > > Tell us if this works. > > > > Regards, > > -- > > José Abílio -- Rudi Gaelzer Instituto de Física Departamento de Física Universidade Federal do Rio Grande do Sul Av. Bento Gonçalves, 9500 Caixa Postal 15051 91501-970 Porto Alegre - RS Fone: (51) 3308-6474 FAX: (51) 3308-7286 Usuário de Linux registrado # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion error for Help files
Indeed. I reconfigured LyX with the new configure.py, but then when I loaded the Embedded Objects guide it complained about a couple of new modules that are not present in 2.3.4. Moreover, although the rendering no longer complained about inkscape, other processing errors ensued, probably due to the missing modules. Anyway, thanks for the tip. I guess I'll just wait for v. 2.3.5... On quinta-feira, 4 de junho de 2020 11:07:19 -03 Jürgen Spitzmüller wrote: > But note that this won't fix it completely. There are also other > scripts to be fixed. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Conversion error for Help files
Yep! That's it. I recently upgraded to Fedora 32, which distributes inkscape 1.0-2. I'll just wait for LyX 2.3.5 then... On quarta-feira, 3 de junho de 2020 11:49:02 -03 Jürgen Spitzmüller wrote: > Did you upgrade inkscape? LyX 2.3.4 does not work with inkscape 1.0. > LyX 2.3.5 (around the corner) will. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Conversion error for Help files
Suddenly, an error is occurring whenever I try to render any one of the Help files (User Guide, Embedded Objects, etc) into PDF. The error is related to conversion of images using inkscape. This is the first error message: An error occurred while running: inkscape --file="2_usr_share_lyx_images_dialog-show-new-inset_graphics.svgz" --export-area-drawing --without-gui --export- pdf="2_usr_share_lyx_images_dialog-show-new-inset_graphics.pdf" Lots of similar error messages occur and I have to kill the process. Any idea on what could be generating this error? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Pseuodocode module
> I have a beta version ready for a module for entering pseudocode > listings (using the algorithmicx LaTeX package). Besides the module > itself (pseudocode.module), there's a documentation file (pseucode.lyx) > with some minimal instructions and examples. It's now on GitHub at > https://github.com/prubin73/algpseudocode. > > If anyone wants to try it out, please feel free to post questions here > or add suggestions/bug reports to the issue tracker for the project. Dear Paul. I just installed you module in LyX as per instructed. Thank you for your contribution. I may have some questions about it as I'm testing it. A first question is: does your module support the \algstore and \algrestore commands? I have some algorithms that I'd like to break through different pages. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- Rudi Gaelzer Departamento de Física Instituto de Física Universidade Federal do Rio Grande do Sul Porto Alegre - RS BRAZIL Phone: +55-51-3308-6472 FAX: +55-51-3308-7286 Registered Linux user # 153741
Re: Export child document to pdf2 from command line
OK, registered the issue in the Bug Tracker. > And of course one also gets notifications when there are questions about > the bug, or when progress has been made on it, etc. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
On Sun, Aug 25, 2019 at 9:11 PM Richard Kimberly Heck wrote: > > Another detail came up. I did a simple test with a document containing > 3 > > short chapters. > > > > From the GUI, in Settings -> Child Documents -> Master Document Output > -> > > Include only selected children I can select only some child documents > and > > then create the PDF in File -> Export -> PDF (pdflatex). The exported > PDF > > will contain only the selected child(ren), with all the cross-references. > > > > However, if I export from command line with > > lyx --export pdf2 master.lyx > > the PDF will invariably contain the whole document. > > I can sen the test files if you wish. > > Can you file a bug report about this? > > Riki > > > I can, but I'll need to initiate myself to the process... If I go to the main page (www.lyx.org) and click Bug Tracker, it opens the LyX Bug Tracker page in https://www.lyx.org/trac/wiki/BugTrackerHome I believe that's the correct place to report bugs, right? I will have to register first, in this case. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
> > Is putting each of your child documents in a separate branch a > > possibility? That way you could use the solution you found. I'm not > > aware of a different approach (maybe someone else knows though). > > > > Yes, I thought of trying that, although some people reported > > difficulties exporting branches. > > I've found another solution where the guy edited the .lyx file with > > sed first and then exported to PDF. > > > > I just wanted to know if there is a simpler way... > > Not at the moment, but it's a reasonable request. We'd need something > like "child-in(ex)clude FILE.lyx" as an LFUN. Another detail came up. I did a simple test with a document containing 3 short chapters. >From the GUI, in Settings -> Child Documents -> Master Document Output -> Include only selected children I can select only some child documents and then create the PDF in File -> Export -> PDF (pdflatex). The exported PDF will contain only the selected child(ren), with all the cross-references. However, if I export from command line with lyx --export pdf2 master.lyx the PDF will invariably contain the whole document. I can sen the test files if you wish. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Export child document to pdf2 from command line
> > Is putting each of your child documents in a separate branch a > possibility? That way you could use the solution you found. I'm not > aware of a different approach (maybe someone else knows though). > > Yes, I thought of trying that, although some people reported difficulties exporting branches. I've found another solution where the guy edited the .lyx file with sed first and then exported to PDF. I just wanted to know if there is a simpler way... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Export child document to pdf2 from command line
I have a multi-part document with chapters that are included as child documents. I can successfully export the whole document to PDF in a terminal using the standard way given in the ImportExport FAQ in WikiLyX: lyx --export pdf2 master.lyx Now, if I want to export only some of the childs to PDF, is there a standard way to accomplish this? The only other relevant instruction in the FAQ is related to branches: lyx -x "command-sequence branch-activate b1; branch-deactivate b2" -E pdf2 outfile.pdf infile.lyx but I don't think it applies to my case. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Configuration of LyXHTML
On Sat, 10 Aug 2019 14:42:40 -0300 > > Rudi Gaelzer wrote: > > I have just tested LyXHTML with a complex document (lots of childs, > > cross- references, listings, etc) and found that the result is fairly > > good. However, all the files that were generated were stored in the > > same directory as the sources. > > Is there a way to configure LyXHTML to change the following: > > 1. Write the files in another directory. > > 2. Color of the items in TOC. They are black by default. Can I > > change the color? > > 3. Using the "Fancy Colored Boxes" module. I inserted a Custom Color > > Box in the master document and the configuration of said custom box > > was rendered at the top of the xhtlm page. That configuration should > > not have been printed. 4. Also using the "Custom Header/Footerlines" > > module. The field titles: "Left Header:", "Right Footer:", etc, were > > also included in the xhtml. They should be invisible. > > > > Any tips? > > My best tip for rendering HTML or ePub would be to use something > besides LyX. > > Lately, I've been writing a book in Asciidoctor. Once I scaffolded it > with a few shellscripts, it converted to *clean* and *styleful* > (X)HTML5: Much higher quality than anything I remember from LyX > converters like LyXHTML. Via Pandoc I've also gotten it to write to > PDF via LaTeX, although the look and quality of the PDF isn't yet good > enough that I'd sell the PDF version of this book. > > The array of things Asciidoctor can do is breathtaking, and I'll be > happy to help anyone wanting to get into Asciidoctor. As I understand, you are creating the document with Asciidoctor before converting it to HTML (or ePub), correct? Thank you for the suggestion, but I would rather stick to LyX/LaTeX for document creation. Another feature I would like added to LyXHTML is the possibility to split the hypertext in different levels (e.g., chapters) instead of creating a single large file (order of MBs). -- Rudi Gaelzer Departamento de Física Instituto de Física Universidade Federal do Rio Grande do Sul Porto Alegre - RS BRAZIL Phone: +55-51-3308-6472 FAX: +55-51-3308-7286 Registered Linux user # 153741
Configuration of LyXHTML
I have just tested LyXHTML with a complex document (lots of childs, cross- references, listings, etc) and found that the result is fairly good. However, all the files that were generated were stored in the same directory as the sources. Is there a way to configure LyXHTML to change the following: 1. Write the files in another directory. 2. Color of the items in TOC. They are black by default. Can I change the color? 3. Using the "Fancy Colored Boxes" module. I inserted a Custom Color Box in the master document and the configuration of said custom box was rendered at the top of the xhtlm page. That configuration should not have been printed. 4. Also using the "Custom Header/Footerlines" module. The field titles: "Left Header:", "Right Footer:", etc, were also included in the xhtml. They should be invisible. Any tips? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Beamer help: nested overprints
> I think the use of multiple overprint environments is part of the > problem, but I also think the use of overprint is incompatible with > having some text on slide 3 onward and some on just slide 3. The Beamer > > manual says this in the description of overprint environments: > > The overlay specifications of the \onslide commands must be disjoint. > > Yours are not disjoint. The attached version uses overlayarea rather > than overprint. See if it does what you want. > > Paul It does after I made a slight correction. Notice that in your file the overlays are actually outside the overlayarea. You can see it clearly if you export to LaTeX. I you then include the onlyenvs inside the overlayarea (see attached), then the result conforms what I was expecting. The difference between the two cases is that in the first case, the baseline of the permanent text is moved upwards as more lines are added to the frame, whereas in the second case (all onlyenvs inside the overlayarea) the baseline is fixed. This is what I wanted. Thanks for the tip. I did not try with overlayarea because I was not sure about the overlay height. But it seems that setting a total height of 0cm does the trick. -- Rudi Gaelzer Departamento de Física Instituto de Física Universidade Federal do Rio Grande do Sul Porto Alegre - RS BRAZIL Phone: +55-51-3308-6472 FAX: +55-51-3308-7286 Registered Linux user # 153741 NestedOverprints3.lyx Description: application/lyx
Beamer help: nested overprints
I have a problem with Beamer that certainly has a very simple solution, but I'm not able to find it... In the attached file, there is a single frame. The first line appears on all subframes, but the following lines are inside a main overprint environment. The second line should appear only on the second slide, the third line on the third and fourth slides and it should replace the second line. There is also a fourth line that is overprinted on the third and fourth lines. However, the second line does not appear on the PDF, only the remaining subframes. My use of a nested overprint inside a parent overprint is wrong? Thank you. -- Rudi Gaelzer Registered Linux user # 153741 NestedOverprints.lyx Description: application/lyx
Superscripts in ABNT keyboard: version 2.3.1
Ever since LyX was upgraded to v. 2.3.1 the rendering of math superscripts changed. Using a ABNT (brazilian) keyboard map, which provides accents (acute, grave, circumflex, cedilla, etc) as dead keys, up to the previous version (2.3.0), whenever I wanted a superscript in math mode I would use the circumflex accent key. That would have the same effect as the key-binding Alt+M E, both in LyX math mode and in LaTeX. Now, since v. 2.3.1 was installed, if I want to renderize $a^2$, for instance, in LyX math, it will display literally a^2. After exiting math mode and with instant preview active, the LaTeX rendition will display the correct format. Subscripts are still rendered either with Alt+M X or with "_" (underscore), as it was always done. This is not something terribly annoying, but with an ABNT keyboard it is much faster to employ the single "^" key than pressing the 3 keys Alt + M + E. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Chapterbib: another \bibstyle command error
On Thursday, December 29, 2016 5:22:17 PM BRST Jürgen Spitzmüller wrote: > Yes, this is an error from bibtex's point of view: you are not supposed > to enter more than one \bibliographystyle or \bibliography command, but > this happens for each bibtex inset you insert. > > BibTeX errors were not caught in previous versions of LyX. > > On the command line, you get the error as well, although you probably > haven't noticed it. It's not quite like that. If I run bibtex for each child individually, the bbl's are generated without a hitch. The error comes when I bibtex'ed the main file. Your bibtexall script does not distinguish between the master and children aux's and processes them all, without issuing any message to the console. Where is the standard error output in this case? > > Hitting the "Show output anyway" button should give you the PDF. Indeed it does, at least for this small sample. > > Working around the error would require a proper chapterbib support in > LyX. The better way would probably to switch to biblatex, which > provides the same (and more) functionality. I never used biblatex, but I'll take a look and try to come up with an equivalent implementation. Thanks. > > HTH > Jürgen -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Chapterbib: another \bibstyle command error
System: Fedora Linux 24 LyX version: 2.2.2 So, I followed the instructions here: https://wiki.lyx.org/BibTeX/Tips#secbib in order to use chapterbib with LyX. 1) The script bibtexall was downloaded, chmod'ed as executable, and put in a directory cited by PATH 2) Went to Tools -> Preferences... -> Output -> LaTeX. In Bibliography Generation: Processor: Custom - Command: bibtexall 3) Created a simple master-child structure (1 master + 2 children). 4) In the master's preamble: \usepackage{chapterbib} 5) Each child file has its own bibliography. When I process the master with pdflatex, the following BibTeX error message appears: == This is BibTeX, Version 0.99d (TeX Live 2016/dev) Capacity: max_strings=35307, hash_size=35307, hash_prime=30011 The top-level auxiliary file: main.aux A level-1 auxiliary file: 2_home_rudi_temp_lyx_chapbib_c01.aux The style file: plain.bst A level-1 auxiliary file: 3_home_rudi_temp_lyx_chapbib_c02.aux Illegal, another \bibstyle command---line 4 of file 3_home_rudi_temp_lyx_chapbib_c02.aux : \bibstyle : {plain} I'm skipping whatever remains of this command Illegal, another \bibdata command---line 5 of file 3_home_rudi_temp_lyx_chapbib_c02.aux : \bibdata : {mysample} I'm skipping whatever remains of this command Database file #1: mysample.bib == I did not commit any error, LaTeXwise speaking. When I exported everything to pdflatex, the following sequence: pdflatex main bibtexall pdflatex main pdflatex main produced the expected and correct PDF file. Below, I'm attaching the files (*.lyx, *.tex, *.bib) Any ideas? ==(main.lyx) #LyX 2.2 created this file. For more info see http://www.lyx.org/ \lyxformat 508 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass book \begin_preamble \usepackage{chapterbib} \end_preamble \use_default_options false \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman "lmodern" "default" \font_sans "lmss" "default" \font_typewriter "lmtt" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_scale 100 100 \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \paperfontsize default \spacing single \use_hyperref false \pdf_title "Chapterbib test 01" \pdf_author "Rudi Gaelzer - IF/UFRGS" \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks true \pdf_pdfborder true \pdf_colorlinks true \pdf_backref false \pdf_pdfusetitle true \pdf_quoted_options "linkcolor=blue, citecolor=blue" \papersize a4paper \use_geometry true \use_package amsmath 2 \use_package amssymb 2 \use_package cancel 1 \use_package esint 0 \use_package mathdots 1 \use_package mathtools 1 \use_package mhchem 1 \use_package stackrel 1 \use_package stmaryrd 1 \use_package undertilde 1 \cite_engine basic \cite_engine_type default \biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false \justification true \use_refstyle 0 \index Index \shortcut idx \color #008000 \end_index \leftmargin 1in \topmargin 1in \rightmargin 0.8in \bottommargin 1in \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \paragraph_indentation default \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Standard This is the main file. \end_layout \begin_layout Standard \begin_inset CommandInset include LatexCommand include filename "c01.lyx" \end_inset \end_layout \begin_layout Standard \begin_inset CommandInset include LatexCommand include filename "c02.lyx" \end_inset \end_layout \end_body \end_document ==(c01.lyx) #LyX 2.2 created this file. For more info see http://www.lyx.org/ \lyxformat 508 \begin_document \begin_header \save_transient_properties true \origin unavailable \textclass book \begin_preamble \usepackage{chapterbib} \end_preamble \use_default_options false \master main.lyx \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \font_roman "lmodern" "default" \font_sans "lmss" "default" \font_typewriter "lmtt" "default" \font_math "auto" "auto" \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 100 \font_tt_s
Re: Rolling lists in Beamer
I see. Anyhoo, it's good to learn about all possibilities. Thanks again. Since we're talking about beamer and you seem a proficient user, another tweak I've been struggling to implement is a better control on the positioning of objects such as figures or boxes that will remain fixed at a given position whereas the remaining of the slide wraps around it. I've obtained a partial success with the wrap figure float, which call the wrapfig pack, but I don't really have a total control on the positioning (since it's a "float" after all) and the outcome is less than satisfactory. Some people report success using the cutwin package, others recommend pgf-tkiz for figures and/or textpos for boxes. I still haven't come around finding time to test all possibilities, though. Do you have any suggestion on this regard? On quarta-feira, 7 de dezembro de 2016 15:56:28 BRST Jürgen Spitzmüller wrote: > 2016-12-07 15:16 GMT+01:00 Rudi Gaelzer <rgael...@gmail.com>: > > The "clever" implementation is IMHO the most elegant solution, but there > > are > > some subtle differences in the rolling behavior. The most evident is that > > with the "clever" rolling list, one has to continue changing slides until > > the > > only item remaining is the last. Do you know if there's some "cleverer" > > way > > to avoid that? > > Yes, but it is not as "clever" anymore. See attachment. > > Jürgen -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Rolling lists in Beamer
Hi Jürgen. Thank you for your reply. Your improved rolling list solution is what I was looking for. I was trying to implement the same result using Edit -> Text Style -> Only, but in this case the result is different. Your "clever" rolling list solution is the implementation of the other suggestion from the site. That one I was able to implement exactly as you did. What I was really interested in were rolling lists that contain nested lists with items that themselves are supposed to appear only in certain slides. I was able to implement that result inserting the "only@" clause in the item overlay specification for those particular nested items. See the attached file with my tweaks. The "clever" implementation is IMHO the most elegant solution, but there are some subtle differences in the rolling behavior. The most evident is that with the "clever" rolling list, one has to continue changing slides until the only item remaining is the last. Do you know if there's some "cleverer" way to avoid that? Anyway, thanks again. As I learn new things about the beamer class the more impressed I become with its flexibility. On quarta-feira, 7 de dezembro de 2016 12:41:44 BRST Jürgen Spitzmüller wrote: > 2016-12-07 12:19 GMT+01:00 Rudi Gaelzer <rgael...@gmail.com>: > > Has anyone implemented with Lyx-Beamer any of the "rolling lists" > > discussed > > here(?): > > http://tex.stackexchange.com/questions/69609/rolling-> > > > bullet-points-in-beamer > > > > I can implement the first example, but with heavy ERTing (see attached). > > I'm just wondering if anyone has a more elegant implementation... > > See attachement for two possible solutions. > > Jürgen > > > -- > > Rudi Gaelzer > > Institute of Physics > > Federal University of Rio Grande do Sul > > BRAZIL > > Registered linux user # 153741 -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 roll_list5.lyx Description: application/lyx
Rolling lists in Beamer
Has anyone implemented with Lyx-Beamer any of the "rolling lists" discussed here(?): http://tex.stackexchange.com/questions/69609/rolling-bullet-points-in-beamer I can implement the first example, but with heavy ERTing (see attached). I'm just wondering if anyone has a more elegant implementation... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 roll_list.lyx Description: application/lyx
Re: LyX 2.2.0-1 on FC23: some math shortcuts not working.
On Saturday 11 June 2016 13:52:26 Scott Kostyshak wrote: > I'm not sure if this is related or not, especially since the user who > reported this is a Mac user but who knows: > http://www.lyx.org/trac/ticket/10119 > What language is your keyboard? So you think is a keyboard thing? My keyboards are all PT_BR. > > What Qt version is LyX compiled against? (this question is regardless of > whether you compile it yourself or it was packaged for you) Let us know > if you want help determining this. It might be in Help > About. I did not compile, just used the binaries released by the updates repo of F23. Below are the requirements to install LyX 2.2.0-1. It seems that whoever created the binaries compiled against Qt 5.6.0-13. = libstdc++.so.6(CXXABI_1.3)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libQt5Gui.so.5(Qt_5)(64bit) --> qt5-qtbase-gui-5.6.0-13.fc23.x86_64 /usr/bin/dvipost --> tetex-dvipost-1.1-20.fc23.x86_64 libhunspell-1.3.so.0()(64bit) --> hunspell-1.3.3-8.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4.9)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libgmodule-2.0.so.0()(64bit) --> glib2-2.46.2-2.fc23.x86_64 tex(ulem.sty) --> texlive-ulem-4:svn26785.0-19.fc23.noarch libglib-2.0.so.0()(64bit) --> glib2-2.46.2-2.fc23.x86_64 libQt5Widgets.so.5()(64bit) --> qt5-qtbase-gui-5.6.0-13.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4.5)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 lyx-common = 2.2.0-1.fc23 --> lyx-common-2.2.0-1.fc23.noarch libQt5Core.so.5()(64bit) --> qt5-qtbase-5.6.0-13.fc23.x86_64 ghostscript --> ghostscript-9.16-3.fc23.x86_64 --> ghostscript-9.16-3.fc23.i686 libpthread.so.0(GLIBC_2.2.5)(64bit) --> glibc-2.22-17.fc23.x86_64 tex(latex) --> texlive-collection- latexrecommended-4:svn33055.0-19.20140525_r34255.fc23.noarch tex(dvips) --> texlive-dvips-4:svn33394.0-19.fc23.noarch libz.so.1()(64bit) --> zlib-1.2.8-9.fc23.x86_64 /usr/bin/dvipdfm --> texlive-dvipdfmx-bin-4:svn30845.0-19.20140525_r34255.fc23.x86_64 libboost_signals.so.1.58.0()(64bit) --> boost-signals-1.58.0-11.fc23.x86_64 libpthread.so.0()(64bit) --> glibc-2.22-17.fc23.x86_64 tex(simplecv.cls) --> texlive-simplecv-4:svn15878.1.6-19.fc23.noarch /usr/bin/dv2dt --> texlive-dtl-bin-4:svn30088.0-19.20140525_r34255.fc23.x86_64 libc.so.6(GLIBC_2.15)(64bit) --> glibc-2.22-17.fc23.x86_64 wv --> wv-1.2.9-12.fc23.x86_64 --> wv-1.2.9-12.fc23.i686 libQt5Svg.so.5()(64bit) --> qt5-qtsvg-5.6.0-3.fc23.x86_64 libstdc++.so.6()(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libm.so.6()(64bit) --> glibc-2.22-17.fc23.x86_64 libQt5Widgets.so.5(Qt_5)(64bit) --> qt5-qtbase-gui-5.6.0-13.fc23.x86_64 xdg-utils --> xdg-utils-1.1.1-4.fc23.noarch libstdc++.so.6(GLIBCXX_3.4.21)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 tex(xcolor.sty) --> texlive-xcolor-4:svn15878.2.11-19.fc23.noarch libQt5Core.so.5(Qt_5.6)(64bit) --> qt5-qtbase-5.6.0-13.fc23.x86_64 libQt5Svg.so.5(Qt_5)(64bit) --> qt5-qtsvg-5.6.0-3.fc23.x86_64 ImageMagick --> ImageMagick-6.9.2.7-1.fc23.x86_64 libQt5Gui.so.5()(64bit) --> qt5-qtbase-gui-5.6.0-13.fc23.x86_64 hicolor-icon-theme --> hicolor-icon-theme-0.15-2.fc23.noarch libmagic.so.1()(64bit) --> file-libs-5.22-6.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4.11)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 lyx-fonts = 2.2.0-1.fc23 --> lyx-fonts-2.2.0-1.fc23.noarch libgcc_s.so.1(GCC_3.0)(64bit) --> libgcc-5.3.1-6.fc23.x86_64 libQt5Concurrent.so.5()(64bit) --> qt5-qtbase-5.6.0-13.fc23.x86_64 libgcc_s.so.1()(64bit) --> libgcc-5.3.1-6.fc23.x86_64 /usr/bin/chktex --> texlive-chktex-bin-4:svn30088.0-19.20140525_r34255.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4.15)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4.14)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libstdc++.so.6(GLIBCXX_3.4.20)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libenchant.so.1()(64bit) --> enchant-1:1.6.0-12.fc23.x86_64 libstdc++.so.6(CXXABI_1.3.8)(64bit) --> libstdc++-5.3.1-6.fc23.x86_64 libQt5Core.so.5(Qt_5)(64bit) --> qt5-qtbase-5.6.0-13.fc23.x86_64 rtld(GNU_HASH) --> glibc-2.22-17.fc23.x86_64 --> glibc-2.22-17.fc23.i686 libm.so.6(GLIBC_2.2.5)(64bit) --> glibc-2.22-17.fc23.x86_64 === -- Rudi Gaelzer Departamento de Física Universidade Federal do Rio Grande do Sul Av. Bento Gonçalves, 9500 91501-970 Porto Alegre - RS Fone: (51) 3308-6474 FAX: (51) 3308-7286 Usuário de Linux registrado # 153741
LyX 2.2.0-1 on FC23: some math shortcuts not working.
I've just installed on my desktop the 2.2.0-1 version delivered by Fedora 23 updates repo. The overall layout is much prettier and I'm eager to test the professed support for retina displays when I upgrade LyX on my laptop. However, I have refrained from installing the upgrade on the laptop because when I tested the 2.2.0 version with the desktop I've found out that some useful mathematical keyboard shortcuts were no longer working. For instance: "ALT+M F" did not entered the \frac command; instead it just will open the dialog window for math spaces. "ALT+M (", "ALT+M [" and "ALT+M {", instead of creating the respective math delimiters would simply do nothing. Also, exponent generation with the caret "^" works sporadically. There may be other shortcut problems that I have not detected yet. Anyway, those I mentioned are annoying, because the shortcuts significantly speed-up the typing of mathematical expressions. Have you noticed something similar, or can this be a specific Fedora issue? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: Export to TeX Needs Article-Specific .bib File
On Tuesday 26 January 2016 08:05:01 Wolfgang Engelmann wrote: > Am 26.01.2016 um 00:51 schrieb Rich Shepard: > > I normally compile my documents using pdflatex. For an article I'm > > > > submitting to a journal I want to provide the .tex (produced using LaTeX > > (pdflatex) and .bib files but I've run into a problem with the latter. > > Perhaps the solution needs to come from the JabRef mail list. > > > > My scientific references are maintained in a JabRef database. There > > > > are a > > number of these that are used in the article, and I've no idea how to > > extract only the cited references into a separate .bib file to send along > > with the .tex file. > > > > A pointer to what I should read to learn how to do this will be much > > > > appreciated. > > > > TIA, > > > > Rich > > Hi, Rich, > in LyX: > File > export > Latex (plain) > > in a terminal: > latex yourfile > latex yourfile > latex yourfile > bibtex yourfile > which produces an yourfile.aux > > in Jabref: > Tools > new subdata based on AUX file > in the window which opens: > Reference data base: yourbibfile > Latex AUX file browse, is in same directory as your lyx file and .tex file. > > This produces a bib file containing ONLY the used references (and tells > you, if some are missing). > > I am on Linux Debian > > Hope it works for you > Wolfgang I've been doing exactly the same thing, but a tad different. After the .aux file is generated, I run it through the bibtool app: $> bibtool -x yourfile.aux -o yourfile.bib that should generate your tailored bibtex database. After that, you'll only have to change the \bibliography{...} command inside yourfile.tex to \bibliography{yourfile} That's been working for me. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: Export to TeX Needs Article-Specific .bib File
On Tuesday 26 January 2016 08:05:01 Wolfgang Engelmann wrote: > Am 26.01.2016 um 00:51 schrieb Rich Shepard: > > I normally compile my documents using pdflatex. For an article I'm > > > > submitting to a journal I want to provide the .tex (produced using LaTeX > > (pdflatex) and .bib files but I've run into a problem with the latter. > > Perhaps the solution needs to come from the JabRef mail list. > > > > My scientific references are maintained in a JabRef database. There > > > > are a > > number of these that are used in the article, and I've no idea how to > > extract only the cited references into a separate .bib file to send along > > with the .tex file. > > > > A pointer to what I should read to learn how to do this will be much > > > > appreciated. > > > > TIA, > > > > Rich > > Hi, Rich, > in LyX: > File > export > Latex (plain) > > in a terminal: > latex yourfile > latex yourfile > latex yourfile > bibtex yourfile > which produces an yourfile.aux > > in Jabref: > Tools > new subdata based on AUX file > in the window which opens: > Reference data base: yourbibfile > Latex AUX file browse, is in same directory as your lyx file and .tex file. > > This produces a bib file containing ONLY the used references (and tells > you, if some are missing). > > I am on Linux Debian > > Hope it works for you > Wolfgang I've been doing exactly the same thing, but a tad differently. After the .aux file is generated, I run it through the bibtool app: $> bibtool -x yourfile.aux -o yourfile.bib that should generate your tailored bibtex database. After that, you'll only have to change the \bibliography{...} command inside yourfile.tex to \bibliography{yourfile} That's been working for me. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Change tracking: no change bar in PDF output
There is a possible bug here: Using change tracking with PDF output (pdflatex), the \lyxdeleted and \lyxadded commands work as supposed (respectively: read, strike out and blue). However, the change bar is not printed at the margin. Looking at the source, I noticed that LyX uses the xcolor, pdfcolmk and ulem pacs to show the changes, when the output is directly piped to a PDF. OTOH, if I export the doc to (plain) latex, LyX will use the dvipost package. Then, with "pplatex " and "dvipdf ", the resulting PDF contains the change bar. = Here is the source text, which won't printout the change bar. = %% LyX 2.1.4 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{xcolor} \usepackage{pdfcolmk} \usepackage{amsmath} \usepackage{amssymb} \PassOptionsToPackage{normalem}{ulem} \usepackage{ulem} \makeatletter %% LyX specific LaTeX commands. \providecolor{lyxadded}{rgb}{0,0,1} \providecolor{lyxdeleted}{rgb}{1,0,0} %% Change tracking with ulem \DeclareRobustCommand{\lyxadded}[3]{{\color{lyxadded}{}#3}} \DeclareRobustCommand{\lyxdeleted}[3]{{\color{lyxdeleted}\sout{#3}}} \makeatother \usepackage{babel} \begin{document} Lorem ipsum dolor sit amet, \lyxdeleted{Rudi Gaelzer}{Wed Dec 30 15:31:16 2015}{consectetur adipisicing elit,} \lyxadded{Rudi Gaelzer}{Wed Dec 30 15:33:45 2015}{some rubbish here, }sed doeiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi utali\lyxadded{Rudi Gaelzer}{Wed Dec 30 15:34:13 2015}{.} \lyxadded{Rudi Gaelzer}{Wed Dec 30 15:34:15 2015}{Excepteur sint occaecat cupidatat non proident, sunt inculpa qui officia deserunt mollit anim id est laborum.} \end{document} = Here's the source that uses dvipost and generates the bar. = %% LyX 2.1.4 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{dvipost} \usepackage{amsmath} \usepackage{amssymb} \makeatletter %% LyX specific LaTeX commands. %% Change tracking with dvipost \dvipostlayout \dvipost{osstart color push Red} \dvipost{osend color pop} \dvipost{cbstart color push Blue} \dvipost{cbend color pop} \DeclareRobustCommand{\lyxadded}[3]{\changestart#3\changeend} \DeclareRobustCommand{\lyxdeleted}[3]{% \changestart\overstrikeon#3\overstrikeoff\changeend} \makeatother \usepackage{babel} \begin{document} Lorem ipsum dolor sit amet, \lyxdeleted{Rudi Gaelzer}{Wed Dec 30 15:31:16 2015}{consectetur adipisicing elit,} \lyxadded{Rudi Gaelzer}{Wed Dec 30 15:33:45 2015}{some rubbish here, }sed doeiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi utali\lyxadded{Rudi Gaelzer}{Wed Dec 30 15:34:13 2015}{.} \lyxadded{Rudi Gaelzer}{Wed Dec 30 15:34:15 2015}{Excepteur sint occaecat cupidatat non proident, sunt inculpa qui officia deserunt mollit anim id est laborum.} \end{document} -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: RevTeX 4.1: \onlinecite
Hi, Phillip. Thanks for replying. On Friday 16 October 2015 04:56:33 PhilipPirrip wrote: > Is it in "Insert>Custom insets"? It's just a nicer way of inserting > \onlinecite without typing the command. It is not the same as > insert>citation, as LyX lacks support for providing its infrastructure > (dialog insertion of bib keys in this case) to custom insets. Nope. I'm running LyX 2.1.4. In Insert -> Custom insets there are only: "Float link", "lowercase" and "Surname". That was the first place I looked at... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
RevTeX 4.1: \onlinecite
I'm writing a MS using revtex class, V. 4.1. How do I insert specific commands for the RevTeX class 4.1, such as \onlinecite? I've found this post: https://www.mail-archive.com/lyx-cvs@lists.lyx.org/msg09818.html claiming that revtex4-1.layout supports \onlinecite. Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Enumitem and multiple columns modules: bad mojo.
I've seen a lot of reports in this list about the interaction of the enumited module with other latex classes (such as powerdot) or other modules, most of them regarding the Enumerate-Resume option. Well, now I add my own. I elaborate several exercise lists for my classes. Usually, the problems are printed in 2 columns, but eventually I need to switch to single column for a while and then resume the 2 columns. Enumerate-Resume only works with the sequence 1 column -- 2 columns With the reverse (2 columns -- 1 column), the counter is always reset. See the 2 first attached examples. According to the tests I performed, the counter will only follow the correct sequence if I use the series= and resume= options. However, if I blindly enter the Enumerate Option (with Alt+A 1) inside an Multiple Columns inset, an error message about a missing number will occur. Exporting the text to latex, I noticed that the reason is because the enumitem option will be copied as a \begin{multicols} option (see mul_col_enumited3-lyx_output.tex). The only workaround I found was entering manually the number of columns before (re)starting the list. The attached mul_col_enumitem7.lyx file is the version that works as it should. Perhaps there's a bug in any of the modules? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 mul_col_enumitem.lyx Description: application/lyx mul_col_enumitem2.lyx Description: application/lyx %% LyX 2.1.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage{lmodern} \renewcommand{\sfdefault}{lmss} \renewcommand{\ttdefault}{lmtt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=0.8in} \usepackage{color} \usepackage{babel} \usepackage{multicol} \usepackage{amsmath} \usepackage{amssymb} \usepackage[unicode=true,pdfusetitle, bookmarks=true,bookmarksnumbered=false,bookmarksopen=false, breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=true] {hyperref} \hypersetup{ linkcolor=blue, citecolor=blue} \usepackage{breakurl} \makeatletter %% Textclass specific LaTeX commands. \usepackage{enumitem} % customizable list environments \newlength{\lyxlabelwidth} % auxiliary length %% User specified LaTeX commands. \usepackage{blindtext} \usepackage{lipsum} \makeatother \begin{document} \begin{center} \textbf{\large{}One column first, then 2 columns, then 1 column again (with series option)} \par\end{center}{\large \par} Notice how ``resume=test'' is printed, although the list is correctly enumerated. \noindent \rule[0.5ex]{1\columnwidth}{1pt} \begin{enumerate}[series=test] \item \blindtext \item \lipsum[1] \end{enumerate} \begin{multicols}{resume=test} \begin{enumerate}[resume=test] \item \lipsum[2] \item \blindtext\end{enumerate} \end{multicols} \begin{enumerate}[resume=test] \item \lipsum[3] \item \lipsum[4]\end{enumerate} \end{document} mul_col_enumitem7.lyx Description: application/lyx
Enumitem and multiple columns modules: bad mojo.
I've seen a lot of reports in this list about the interaction of the enumited module with other latex classes (such as powerdot) or other modules, most of them regarding the Enumerate-Resume option. Well, now I add my own. I elaborate several exercise lists for my classes. Usually, the problems are printed in 2 columns, but eventually I need to switch to single column for a while and then resume the 2 columns. Enumerate-Resume only works with the sequence 1 column -- 2 columns With the reverse (2 columns -- 1 column), the counter is always reset. See the 2 first attached examples. According to the tests I performed, the counter will only follow the correct sequence if I use the series= and resume= options. However, if I blindly enter the Enumerate Option (with Alt+A 1) inside an Multiple Columns inset, an error message about a missing number will occur. Exporting the text to latex, I noticed that the reason is because the enumitem option will be copied as a \begin{multicols} option (see mul_col_enumited3-lyx_output.tex). The only workaround I found was entering manually the number of columns before (re)starting the list. The attached mul_col_enumitem7.lyx file is the version that works as it should. Perhaps there's a bug in any of the modules? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 mul_col_enumitem.lyx Description: application/lyx mul_col_enumitem2.lyx Description: application/lyx %% LyX 2.1.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage{lmodern} \renewcommand{\sfdefault}{lmss} \renewcommand{\ttdefault}{lmtt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=0.8in} \usepackage{color} \usepackage{babel} \usepackage{multicol} \usepackage{amsmath} \usepackage{amssymb} \usepackage[unicode=true,pdfusetitle, bookmarks=true,bookmarksnumbered=false,bookmarksopen=false, breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=true] {hyperref} \hypersetup{ linkcolor=blue, citecolor=blue} \usepackage{breakurl} \makeatletter %% Textclass specific LaTeX commands. \usepackage{enumitem} % customizable list environments \newlength{\lyxlabelwidth} % auxiliary length %% User specified LaTeX commands. \usepackage{blindtext} \usepackage{lipsum} \makeatother \begin{document} \begin{center} \textbf{\large{}One column first, then 2 columns, then 1 column again (with series option)} \par\end{center}{\large \par} Notice how ``resume=test'' is printed, although the list is correctly enumerated. \noindent \rule[0.5ex]{1\columnwidth}{1pt} \begin{enumerate}[series=test] \item \blindtext \item \lipsum[1] \end{enumerate} \begin{multicols}{resume=test} \begin{enumerate}[resume=test] \item \lipsum[2] \item \blindtext\end{enumerate} \end{multicols} \begin{enumerate}[resume=test] \item \lipsum[3] \item \lipsum[4]\end{enumerate} \end{document} mul_col_enumitem7.lyx Description: application/lyx
Enumitem and multiple columns modules: bad mojo.
I've seen a lot of reports in this list about the interaction of the enumited module with other latex classes (such as powerdot) or other modules, most of them regarding the Enumerate-Resume option. Well, now I add my own. I elaborate several exercise lists for my classes. Usually, the problems are printed in 2 columns, but eventually I need to switch to single column for a while and then resume the 2 columns. Enumerate-Resume only works with the sequence 1 column --> 2 columns With the reverse (2 columns --> 1 column), the counter is always reset. See the 2 first attached examples. According to the tests I performed, the counter will only follow the correct sequence if I use the "series=" and "resume=" options. However, if I blindly enter the Enumerate Option (with Alt+A 1) inside an Multiple Columns inset, an error message about a missing number will occur. Exporting the text to latex, I noticed that the reason is because the enumitem option will be copied as a \begin{multicols} option (see mul_col_enumited3-lyx_output.tex). The only workaround I found was entering manually the number of columns before (re)starting the list. The attached mul_col_enumitem7.lyx file is the version that works as it should. Perhaps there's a bug in any of the modules? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 mul_col_enumitem.lyx Description: application/lyx mul_col_enumitem2.lyx Description: application/lyx %% LyX 2.1.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage{lmodern} \renewcommand{\sfdefault}{lmss} \renewcommand{\ttdefault}{lmtt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=0.8in} \usepackage{color} \usepackage{babel} \usepackage{multicol} \usepackage{amsmath} \usepackage{amssymb} \usepackage[unicode=true,pdfusetitle, bookmarks=true,bookmarksnumbered=false,bookmarksopen=false, breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=true] {hyperref} \hypersetup{ linkcolor=blue, citecolor=blue} \usepackage{breakurl} \makeatletter %% Textclass specific LaTeX commands. \usepackage{enumitem} % customizable list environments \newlength{\lyxlabelwidth} % auxiliary length %% User specified LaTeX commands. \usepackage{blindtext} \usepackage{lipsum} \makeatother \begin{document} \begin{center} \textbf{\large{}One column first, then 2 columns, then 1 column again (with series option)} \par\end{center}{\large \par} Notice how ``resume=test'' is printed, although the list is correctly enumerated. \noindent \rule[0.5ex]{1\columnwidth}{1pt} \begin{enumerate}[series=test] \item \blindtext \item \lipsum[1] \end{enumerate} \begin{multicols}{resume=test} \begin{enumerate}[resume=test] \item \lipsum[2] \item \blindtext\end{enumerate} \end{multicols} \begin{enumerate}[resume=test] \item \lipsum[3] \item \lipsum[4]\end{enumerate} \end{document} mul_col_enumitem7.lyx Description: application/lyx
Re: LyX on Retina display
On Thursday 19 March 2015 13:19:43 Stephan Witt wrote: Am 19.03.2015 um 12:32 schrieb Rudi Gaelzer rgael...@gmail.com: Resuming this discussion, I've just acquired a MSI notebook with Retina display (2880x1620). Is it a Mac or a Windows gadget? If you're on Windows then this is a known problem. Neither. It's running Fedora 21 linux. Stephan I changed the screen fonts sizes and set the Instant Preview size to the factor 1.8. With these modifications, I can read what's on the screen fairly well. However, the icons are still too small, even when I use Big-sized icons. Is there a way to make a further increase in the size of the icons? Thanks. On Wednesday 14 January 2015 11:39:38 Chris Menzel wrote: Thank you for posting that screenshot, Stephan. However, I believe I'm getting much better resolution than in your screenshot (under Lyx 2.1.2.2) on both my rMPB and my retina iMac by scaling up the resolution to the next higher setting above the default (on the iMac, the Displays preference pane calls it 2880x1620, but of course with the far higher retina pixel density) and using MinionPro as the screen font: http://cmenzel.org/LyX-screenshot.pdf. To my eyes, the scaled up setting has no effect on the quality of the display in other programs (though you might want to use larger fonts than you would with the default setting). Others screen fonts that (unlike MinionPro) are part of the MacTeX 2014 distribution, e.g., Palatino, seem to me to look almost as good. -chris -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: LyX on Retina display
On Thursday 19 March 2015 13:19:43 Stephan Witt wrote: Am 19.03.2015 um 12:32 schrieb Rudi Gaelzer rgael...@gmail.com: Resuming this discussion, I've just acquired a MSI notebook with Retina display (2880x1620). Is it a Mac or a Windows gadget? If you're on Windows then this is a known problem. Neither. It's running Fedora 21 linux. Stephan I changed the screen fonts sizes and set the Instant Preview size to the factor 1.8. With these modifications, I can read what's on the screen fairly well. However, the icons are still too small, even when I use Big-sized icons. Is there a way to make a further increase in the size of the icons? Thanks. On Wednesday 14 January 2015 11:39:38 Chris Menzel wrote: Thank you for posting that screenshot, Stephan. However, I believe I'm getting much better resolution than in your screenshot (under Lyx 2.1.2.2) on both my rMPB and my retina iMac by scaling up the resolution to the next higher setting above the default (on the iMac, the Displays preference pane calls it 2880x1620, but of course with the far higher retina pixel density) and using MinionPro as the screen font: http://cmenzel.org/LyX-screenshot.pdf. To my eyes, the scaled up setting has no effect on the quality of the display in other programs (though you might want to use larger fonts than you would with the default setting). Others screen fonts that (unlike MinionPro) are part of the MacTeX 2014 distribution, e.g., Palatino, seem to me to look almost as good. -chris -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: LyX on Retina display
On Thursday 19 March 2015 13:19:43 Stephan Witt wrote: > Am 19.03.2015 um 12:32 schrieb Rudi Gaelzer <rgael...@gmail.com>: > > Resuming this discussion, I've just acquired a MSI notebook with Retina > > display (2880x1620). > > Is it a Mac or a Windows gadget? If you're on Windows then this is a known > problem. Neither. It's running Fedora 21 linux. > > Stephan > > > I changed the screen fonts sizes and set the Instant Preview size to the > > factor 1.8. With these modifications, I can read what's on the screen > > fairly well. > > However, the icons are still too small, even when I use Big-sized icons. > > Is there a way to make a further increase in the size of the icons? > > Thanks. > > > > On Wednesday 14 January 2015 11:39:38 Chris Menzel wrote: > >> Thank you for posting that screenshot, Stephan. However, I believe I'm > >> getting much better resolution than in your screenshot (under Lyx > >> 2.1.2.2) > >> on both my rMPB and my retina iMac by scaling up the resolution to the > >> next > >> higher setting above the default (on the iMac, the Displays preference > >> pane > >> calls it "2880x1620", but of course with the far higher retina pixel > >> density) and using MinionPro as the screen font: > >> http://cmenzel.org/LyX-screenshot.pdf. To my eyes, the scaled up setting > >> has no effect on the quality of the display in other programs (though you > >> might want to use larger fonts than you would with the default setting). > >> Others screen fonts that (unlike MinionPro) are part of the MacTeX 2014 > >> distribution, e.g., Palatino, seem to me to look almost as good. > >> > >> -chris -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: LyX on Retina display
Resuming this discussion, I've just acquired a MSI notebook with Retina display (2880x1620). I changed the screen fonts sizes and set the Instant Preview size to the factor 1.8. With these modifications, I can read what's on the screen fairly well. However, the icons are still too small, even when I use Big-sized icons. Is there a way to make a further increase in the size of the icons? Thanks. On Wednesday 14 January 2015 11:39:38 Chris Menzel wrote: Thank you for posting that screenshot, Stephan. However, I believe I'm getting much better resolution than in your screenshot (under Lyx 2.1.2.2) on both my rMPB and my retina iMac by scaling up the resolution to the next higher setting above the default (on the iMac, the Displays preference pane calls it 2880x1620, but of course with the far higher retina pixel density) and using MinionPro as the screen font: http://cmenzel.org/LyX-screenshot.pdf. To my eyes, the scaled up setting has no effect on the quality of the display in other programs (though you might want to use larger fonts than you would with the default setting). Others screen fonts that (unlike MinionPro) are part of the MacTeX 2014 distribution, e.g., Palatino, seem to me to look almost as good. -chris -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: LyX on Retina display
Resuming this discussion, I've just acquired a MSI notebook with Retina display (2880x1620). I changed the screen fonts sizes and set the Instant Preview size to the factor 1.8. With these modifications, I can read what's on the screen fairly well. However, the icons are still too small, even when I use Big-sized icons. Is there a way to make a further increase in the size of the icons? Thanks. On Wednesday 14 January 2015 11:39:38 Chris Menzel wrote: Thank you for posting that screenshot, Stephan. However, I believe I'm getting much better resolution than in your screenshot (under Lyx 2.1.2.2) on both my rMPB and my retina iMac by scaling up the resolution to the next higher setting above the default (on the iMac, the Displays preference pane calls it 2880x1620, but of course with the far higher retina pixel density) and using MinionPro as the screen font: http://cmenzel.org/LyX-screenshot.pdf. To my eyes, the scaled up setting has no effect on the quality of the display in other programs (though you might want to use larger fonts than you would with the default setting). Others screen fonts that (unlike MinionPro) are part of the MacTeX 2014 distribution, e.g., Palatino, seem to me to look almost as good. -chris -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: LyX on Retina display
Resuming this discussion, I've just acquired a MSI notebook with Retina display (2880x1620). I changed the screen fonts sizes and set the Instant Preview size to the factor 1.8. With these modifications, I can read what's on the screen fairly well. However, the icons are still too small, even when I use Big-sized icons. Is there a way to make a further increase in the size of the icons? Thanks. On Wednesday 14 January 2015 11:39:38 Chris Menzel wrote: > Thank you for posting that screenshot, Stephan. However, I believe I'm > getting much better resolution than in your screenshot (under Lyx 2.1.2.2) > on both my rMPB and my retina iMac by scaling up the resolution to the next > higher setting above the default (on the iMac, the Displays preference pane > calls it "2880x1620", but of course with the far higher retina pixel > density) and using MinionPro as the screen font: > http://cmenzel.org/LyX-screenshot.pdf. To my eyes, the scaled up setting > has no effect on the quality of the display in other programs (though you > might want to use larger fonts than you would with the default setting). > Others screen fonts that (unlike MinionPro) are part of the MacTeX 2014 > distribution, e.g., Palatino, seem to me to look almost as good. > > -chris -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered Linux user # 153741
Re: Opening beamer with Lyx 2.1
On Friday 05 September 2014 07:43:09 Jürgen Spitzmüller wrote: Please send any such files to me (in PM, if it is confident). We have already solved many problems for 2.1.2, more is scheduled for 2.1.3. You would help me a lot if you could strip the example files down to the relevant slide (bisecting). Ok, but how do I isolate the problematic slides? All I get is the rather cryptic message: /tmp/lyx_tmpdir.gpzNGrw.../Buffer_convertLyXFormatX.lyx.Pcs... ended unexpectedly, which means that it is probably corrupted. Previous messages and suggestions on the matter inferred that it's the {}'s in blocks that cause the crash. Opening the file with a text editor, I can find strange structures such as == \begin_layout Plain Layout { \end_layout == or == \begin_layout Plain Layout } \end_layout == with unmatched braces, and also == \begin_layout Plain Layout {} \end_layout == Could these be the cause? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Opening beamer with Lyx 2.1
On Friday 05 September 2014 07:43:09 Jürgen Spitzmüller wrote: Please send any such files to me (in PM, if it is confident). We have already solved many problems for 2.1.2, more is scheduled for 2.1.3. You would help me a lot if you could strip the example files down to the relevant slide (bisecting). Ok, but how do I isolate the problematic slides? All I get is the rather cryptic message: /tmp/lyx_tmpdir.gpzNGrw.../Buffer_convertLyXFormatX.lyx.Pcs... ended unexpectedly, which means that it is probably corrupted. Previous messages and suggestions on the matter inferred that it's the {}'s in blocks that cause the crash. Opening the file with a text editor, I can find strange structures such as == \begin_layout Plain Layout { \end_layout == or == \begin_layout Plain Layout } \end_layout == with unmatched braces, and also == \begin_layout Plain Layout {} \end_layout == Could these be the cause? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Opening beamer with Lyx 2.1
On Friday 05 September 2014 07:43:09 Jürgen Spitzmüller wrote: > Please send any such files to me (in PM, if it is confident). We have already > solved many problems for 2.1.2, more is scheduled for 2.1.3. > > You would help me a lot if you could strip the example files down to the > relevant slide (bisecting). Ok, but how do I isolate the problematic slides? All I get is the rather cryptic message: /tmp/lyx_tmpdir.gpzNGrw.../Buffer_convertLyXFormatX.lyx.Pcs... ended unexpectedly, which means that it is probably corrupted. Previous messages and suggestions on the matter inferred that it's the {}'s in blocks that cause the crash. Opening the file with a text editor, I can find strange structures such as == \begin_layout Plain Layout { \end_layout == or == \begin_layout Plain Layout } \end_layout == with unmatched braces, and also == \begin_layout Plain Layout {} \end_layout == Could these be the cause? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Opening beamer with Lyx 2.1
I'm facing the same problem with a beamer presentation created with LyX 2.0 (\lyxformat 413). Now, I have version 2.1.1 but I get the same crash message. On Tuesday 17 June 2014 09:48:02 Richard Heck wrote: On 06/17/2014 07:56 AM, Fabio Fiorelli wrote: Hello everyone I have several beamer files that I generated from lyx 2.0.6 . We had to change from XP to something else, and we went for CentOS. I managed to install and run 2.1, after a brief period using 1.6 (the version present in the repositories). It seems to run smoothly. However when I try to open the old beamer files I get the following message /tmp/lyx_tmpdir.qDvxspUv9932/Buffer_convertLyXFormatXX.lyx.zKzSulrV993 ended unexpectedly, which means that it is probably corrupted I've looked around, and I think this might be an existing incompatibility, but I did not find any lyx 2.1-specific answer. Is there a solution to this? There are some known issues with Beamer conversion, which we hope are solved for 2.1.1. If you want, you can download the lyx2lyx files from git.lyx.org and replace the existing ones, or just compile the 2.1.x branch for yourself. Failing that, 2.1.1 should be out in about two weeks. Richard -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Opening beamer with Lyx 2.1
I'm facing the same problem with a beamer presentation created with LyX 2.0 (\lyxformat 413). Now, I have version 2.1.1 but I get the same crash message. On Tuesday 17 June 2014 09:48:02 Richard Heck wrote: On 06/17/2014 07:56 AM, Fabio Fiorelli wrote: Hello everyone I have several beamer files that I generated from lyx 2.0.6 . We had to change from XP to something else, and we went for CentOS. I managed to install and run 2.1, after a brief period using 1.6 (the version present in the repositories). It seems to run smoothly. However when I try to open the old beamer files I get the following message /tmp/lyx_tmpdir.qDvxspUv9932/Buffer_convertLyXFormatXX.lyx.zKzSulrV993 ended unexpectedly, which means that it is probably corrupted I've looked around, and I think this might be an existing incompatibility, but I did not find any lyx 2.1-specific answer. Is there a solution to this? There are some known issues with Beamer conversion, which we hope are solved for 2.1.1. If you want, you can download the lyx2lyx files from git.lyx.org and replace the existing ones, or just compile the 2.1.x branch for yourself. Failing that, 2.1.1 should be out in about two weeks. Richard -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Opening beamer with Lyx 2.1
I'm facing the same problem with a beamer presentation created with LyX 2.0 (\lyxformat 413). Now, I have version 2.1.1 but I get the same crash message. On Tuesday 17 June 2014 09:48:02 Richard Heck wrote: > On 06/17/2014 07:56 AM, Fabio Fiorelli wrote: > > Hello everyone > > I have several beamer files that I generated from lyx 2.0.6 . We had > > to change from XP to something else, and we went for CentOS. I managed > > to install and run 2.1, after a brief period using 1.6 (the version > > present in the repositories). It seems to run smoothly. However when I > > try to open the old beamer files I get the following message > > > > > > /tmp/lyx_tmpdir.qDvxspUv9932/Buffer_convertLyXFormatXX.lyx.zKzSulrV993 > > ended unexpectedly, which means that it is probably corrupted > > > > I've looked around, and I think this might be an existing > > incompatibility, but I did not find any lyx 2.1-specific answer. > > Is there a solution to this? > > There are some known issues with Beamer conversion, which we hope are > solved for 2.1.1. If you want, you can download the lyx2lyx files from > git.lyx.org and replace the existing ones, or just compile the 2.1.x > branch for yourself. Failing that, 2.1.1 should be out in about two weeks. > > Richard > -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Unsupported math environments
Dear Jacob. Thanks for the reply. However, I think that the solution suggested by Guy Rutenberg will only work for math COMMANDS. See the attached file, where I define a math macro \pFq in order to write the symbol for generalized hypergeometric functions. What I want and need is a means to implement the math ENVIRONMENTS defined by the mathtools package and that are not explicitly supported by LyX. Specifically for multiline equations. LyX supports the standard AMS inner and outer environments, such as align (outer) and aligned (inner). However, multline is only an outer env in the standard AMSmath. The mathtools pack defines the corresponding inner multlined environment, and it seems that there is no way to use it other than ERTing the math input (see attached file). I guess the same tweak can be applied in order to use the other new environments defined by mathtools, such as dcases, rcases, drcases, psmallmatrix, bsmallmatrix, etc. The only other alternative I was able to find was this suggestion by Uwe Stôhr: http://marc.info/?l=lyx-usersm=117565214529188w=2 which would demand some tweaking with the default spaces of the multline environment (see file). I also tried to create first a tex file with \[ \begin{multlined} a = \\ b \end{multlined} \] and then import it into LyX, but only the first line was used. So, I guess multlined is indeed unsupported. On Thursday 26 June 2014 21:45:37 you wrote: On Thu, Jun 26, 2014 at 6:52 AM, Rudi Gaelzer rgael...@gmail.com wrote: Using LyX 2.1.x, is it now possible to implement via ERT the still-unsupported capabilities of the mathtools package, such as the multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec. 3.4.3) environments? I'm not sure I understand the question. What you wrote seems to imply that it was not previously possible to use the capabilities of the mathtools package via ERT. As far as I know, it has *always* (or maybe just for a very long time) been possible to use the capabilities of *any* LaTeX package via ERT (as long as it doesn't conflict with another package that is in use). For example, here is a post of someone using the mathtools package in LyX over two years ago: http://www.guyrutenberg.com/2009/05/13/displaying-non-builtin-math-macros-in-lyx/ . As another example for one of your specific scenarios, here is a post from another person using the cases environment from mathtools: http://tex.stackexchange.com/questions/127417/cases-environment-makes-latex-hang . Why don't you try it, and if you have trouble, post the specific problem here? I hope this helps. Jacob -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 pres.lyx Description: application/lyx
Re: Unsupported math environments
Dear Jacob. Thanks for the reply. However, I think that the solution suggested by Guy Rutenberg will only work for math COMMANDS. See the attached file, where I define a math macro \pFq in order to write the symbol for generalized hypergeometric functions. What I want and need is a means to implement the math ENVIRONMENTS defined by the mathtools package and that are not explicitly supported by LyX. Specifically for multiline equations. LyX supports the standard AMS inner and outer environments, such as align (outer) and aligned (inner). However, multline is only an outer env in the standard AMSmath. The mathtools pack defines the corresponding inner multlined environment, and it seems that there is no way to use it other than ERTing the math input (see attached file). I guess the same tweak can be applied in order to use the other new environments defined by mathtools, such as dcases, rcases, drcases, psmallmatrix, bsmallmatrix, etc. The only other alternative I was able to find was this suggestion by Uwe Stôhr: http://marc.info/?l=lyx-usersm=117565214529188w=2 which would demand some tweaking with the default spaces of the multline environment (see file). I also tried to create first a tex file with \[ \begin{multlined} a = \\ b \end{multlined} \] and then import it into LyX, but only the first line was used. So, I guess multlined is indeed unsupported. On Thursday 26 June 2014 21:45:37 you wrote: On Thu, Jun 26, 2014 at 6:52 AM, Rudi Gaelzer rgael...@gmail.com wrote: Using LyX 2.1.x, is it now possible to implement via ERT the still-unsupported capabilities of the mathtools package, such as the multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec. 3.4.3) environments? I'm not sure I understand the question. What you wrote seems to imply that it was not previously possible to use the capabilities of the mathtools package via ERT. As far as I know, it has *always* (or maybe just for a very long time) been possible to use the capabilities of *any* LaTeX package via ERT (as long as it doesn't conflict with another package that is in use). For example, here is a post of someone using the mathtools package in LyX over two years ago: http://www.guyrutenberg.com/2009/05/13/displaying-non-builtin-math-macros-in-lyx/ . As another example for one of your specific scenarios, here is a post from another person using the cases environment from mathtools: http://tex.stackexchange.com/questions/127417/cases-environment-makes-latex-hang . Why don't you try it, and if you have trouble, post the specific problem here? I hope this helps. Jacob -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 pres.lyx Description: application/lyx
Re: Unsupported math environments
Dear Jacob. Thanks for the reply. However, I think that the solution suggested by Guy Rutenberg will only work for math COMMANDS. See the attached file, where I define a math macro \pFq in order to write the symbol for generalized hypergeometric functions. What I want and need is a means to implement the math ENVIRONMENTS defined by the mathtools package and that are not explicitly supported by LyX. Specifically for multiline equations. LyX supports the standard AMS inner and outer environments, such as align (outer) and aligned (inner). However, multline is only an outer env in the standard AMSmath. The mathtools pack defines the corresponding inner multlined environment, and it seems that there is no way to use it other than ERTing the math input (see attached file). I guess the same tweak can be applied in order to use the other new environments defined by mathtools, such as dcases, rcases, drcases, psmallmatrix, bsmallmatrix, etc. The only other alternative I was able to find was this suggestion by Uwe Stôhr: http://marc.info/?l=lyx-users=117565214529188=2 which would demand some tweaking with the default spaces of the multline environment (see file). I also tried to create first a tex file with \[ \begin{multlined} a = \\ b \end{multlined} \] and then import it into LyX, but only the first line was used. So, I guess multlined is indeed unsupported. On Thursday 26 June 2014 21:45:37 you wrote: > On Thu, Jun 26, 2014 at 6:52 AM, Rudi Gaelzer <rgael...@gmail.com> wrote: > > > Using LyX 2.1.x, is it now possible to implement via ERT the > > still-unsupported capabilities of the mathtools package, such as the > > multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec. > > 3.4.3) environments? > > > > I'm not sure I understand the question. What you wrote seems to imply that > it was not previously possible to use the capabilities of the mathtools > package via ERT. As far as I know, it has *always* (or maybe just for a > very long time) been possible to use the capabilities of *any* LaTeX > package via ERT (as long as it doesn't conflict with another package that > is in use). For example, here is a post of someone using the mathtools > package in LyX over two years ago: > http://www.guyrutenberg.com/2009/05/13/displaying-non-builtin-math-macros-in-lyx/ > . As another example for one of your specific scenarios, here is a post > from another person using the cases environment from mathtools: > http://tex.stackexchange.com/questions/127417/cases-environment-makes-latex-hang > . > > Why don't you try it, and if you have trouble, post the specific problem > here? I hope this helps. > > Jacob -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741 pres.lyx Description: application/lyx
Unsupported math environments
Using LyX 2.1.x, is it now possible to implement via ERT the still-unsupported capabilities of the mathtools package, such as the multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec. 3.4.3) environments? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Unsupported math environments
Using LyX 2.1.x, is it now possible to implement via ERT the still-unsupported capabilities of the mathtools package, such as the multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec. 3.4.3) environments? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Unsupported math environments
Using LyX 2.1.x, is it now possible to implement via ERT the still-unsupported capabilities of the mathtools package, such as the multlined (section 3.4.2), *smallmatrix (sec. 3.4.1) and *cases (sec. 3.4.3) environments? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: FW: help/cannot open after emergency stop...
On Friday 16 May 2014 09:41:27 Jürgen Spitzmüller wrote: 2014-05-16 8:34 GMT+02:00 Wu, Yan: Today when I am writing with LyX. Suddenly the document crushed, with one message says: emergency stop...I could not tell exactly. Then the file closed but I could not open it again later. It is really a disaster for me if I lost the document. I write the email to ask any help I can get from you. Thank you very much in advance. Looking forward to your response. First, check if you have a backup in the backup directory set in Tools Preferences Path. If so (hopefully), you will find a backup of the file there. Next, open the LyX file with a text editor. If it ends with \begin_inset Tabular instead of \end_body \end_document then you have probably faced this bug http://www.lyx.org/trac/ticket/9049 Jürgen Best wishes, Yan This is happening a lot for me, since version 2.1.0. In my case, both the original and the backup files are complete, whereas the emergency lacks \end_body \end_document and ends with \begin_inset Tabular I noticed that this seems to happen after I spent a long time working on the doc without saving, i. e., when the autosave kicks in. If I save the doc a lot, the crash don't happen. I'd suggest that you manually save your work and disable the autobackup in Tools - Preferences - Document Handling until the fix is available. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: FW: help/cannot open after emergency stop...
On Friday 16 May 2014 09:41:27 Jürgen Spitzmüller wrote: 2014-05-16 8:34 GMT+02:00 Wu, Yan: Today when I am writing with LyX. Suddenly the document crushed, with one message says: emergency stop...I could not tell exactly. Then the file closed but I could not open it again later. It is really a disaster for me if I lost the document. I write the email to ask any help I can get from you. Thank you very much in advance. Looking forward to your response. First, check if you have a backup in the backup directory set in Tools Preferences Path. If so (hopefully), you will find a backup of the file there. Next, open the LyX file with a text editor. If it ends with \begin_inset Tabular instead of \end_body \end_document then you have probably faced this bug http://www.lyx.org/trac/ticket/9049 Jürgen Best wishes, Yan This is happening a lot for me, since version 2.1.0. In my case, both the original and the backup files are complete, whereas the emergency lacks \end_body \end_document and ends with \begin_inset Tabular I noticed that this seems to happen after I spent a long time working on the doc without saving, i. e., when the autosave kicks in. If I save the doc a lot, the crash don't happen. I'd suggest that you manually save your work and disable the autobackup in Tools - Preferences - Document Handling until the fix is available. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: FW: help/cannot open after emergency stop...
On Friday 16 May 2014 09:41:27 Jürgen Spitzmüller wrote: > 2014-05-16 8:34 GMT+02:00 Wu, Yan: > > > Today when I am writing with LyX. Suddenly the document crushed, with one > > message says: emergency stop...I could not tell exactly. > > > > Then the file closed but I could not open it again later. It is really a > > disaster for me if I lost the document. > > > > I write the email to ask any help I can get from you. Thank you very much > > in advance. Looking forward to your response. > > > > First, check if you have a backup in the backup directory set in Tools > > Preferences > Path. If so (hopefully), you will find a backup of the file > there. > > Next, open the LyX file with a text editor. If it ends with > > \begin_inset Tabular > > instead of > > \end_body > \end_document > > then you have probably faced this bug > > http://www.lyx.org/trac/ticket/9049 > > Jürgen > > > > > > Best wishes, > > > > Yan > > > > > > > > > > > > This is happening a lot for me, since version 2.1.0. In my case, both the original and the backup files are complete, whereas the emergency lacks \end_body \end_document and ends with \begin_inset Tabular I noticed that this seems to happen after I spent a long time working on the doc without saving, i. e., when the autosave kicks in. If I save the doc a lot, the crash don't happen. I'd suggest that you manually save your work and disable the autobackup in Tools -> Preferences -> Document Handling until the fix is available. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Dashed lines in array/matrix environment.
The embedded objects manual teaches us that by using the arydshln package one can create tables with horizontal/vertical dashed lines. However, I want to do the same in the math environment. I need to represent matrices in block-diagonal notation and the use of dashed lines is one way to distinguish the different parent matrices. In math mode I can create horizontal dashes within a pmatrix inserting \hdashline before the first element of a given line in order to put the dash over it. However, for the vertical dashes, I had to resort to ERT: == (within the ERT): \[ \left(\begin{array}{c:c} a b \\ \hdashline c d \end{array}\right) \] == Notice the {c:c} that puts the vert dash between the columns. It works but it's not wysiwyg... is there no other way to do this within LyX? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Dashed lines in array/matrix environment.
The embedded objects manual teaches us that by using the arydshln package one can create tables with horizontal/vertical dashed lines. However, I want to do the same in the math environment. I need to represent matrices in block-diagonal notation and the use of dashed lines is one way to distinguish the different parent matrices. In math mode I can create horizontal dashes within a pmatrix inserting \hdashline before the first element of a given line in order to put the dash over it. However, for the vertical dashes, I had to resort to ERT: == (within the ERT): \[ \left(\begin{array}{c:c} a b \\ \hdashline c d \end{array}\right) \] == Notice the {c:c} that puts the vert dash between the columns. It works but it's not wysiwyg... is there no other way to do this within LyX? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Dashed lines in array/matrix environment.
The embedded objects manual teaches us that by using the arydshln package one can create tables with horizontal/vertical dashed lines. However, I want to do the same in the math environment. I need to represent matrices in block-diagonal notation and the use of dashed lines is one way to distinguish the different parent matrices. In math mode I can create horizontal dashes within a pmatrix inserting \hdashline before the first element of a given line in order to put the dash over it. However, for the vertical dashes, I had to resort to ERT: == (within the ERT): \[ \left(\begin{array}{c:c} a & b \\ \hdashline c & d \end{array}\right) \] == Notice the "{c:c}" that puts the vert dash between the columns. It works but it's not wysiwyg... is there no other way to do this within LyX? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Rendering of LyX's math screen fonts.
On Thursday 07 November 2013 21:30:14 Georg Baum wrote: Rudi Gaelzer wrote: So I ask you LyXperts: is it possible to configure the math mode editor so that it uses also mathabx and other different math fonts? The roadmap to LyX 2.1 mentions enhanced support for math font selection (OpenType fonts) and support ofr cropped PDF/EPS. However, AFAIU, these enhancements will have an effect on IP and on the exported document. Seems to me that the math editor will still use the same screen fonts. Or am I wrong? You are right, the mentioned features do not affect the look of the math editor. However, there are some new symbols in 2.1, mainly from stmaryrd.sty and mathtools.sty. To some extent you can also add some on your own: The screen appearance of math symbols is defined in the file lib/symbols, which contains some very basic documentation for 2.1. Basically, there are three kinds of symbol definitions in that file: 1) symbols supported by special insets (like the decorations) 2) symbols supported by fonts (like the ones from fontmath.ltx) 3) symbols without any builtin support Adding symbols of type 1) and 2) requires some programming in LyX, and 2) requires also a true type font containing the symbols in a certain order, but symbols of type 3) can easily be added by users: All lines starting with \def are of this kind. For example, you could define \partialslash like this: \def\partialslash{\partial\kern-12mu/} The slash is a bit too short, but maybe there is a longer one already supported by mathed, which you could use instead. Although this looks like a TeX macro definition, it is not used for the output, only for display in LyX. There is basically no documentation how exactly this \def works, you have to use trial and error. You could also make the mathabx package load automatically if this symbol is used (works only for packages in the compiled in feature list of LyX, and mathabx is in there): \def\partialslash{\partial\kern-12mu/} mathabx I strongly advise against doing so, because this makes your LyX document depend on your personal installation, and it would not typeset on vanilla installations. This feature is rather for symbols distributed with the official symbols file. Finally, if you want some symbols to appear officially in LyX, you could add them to bug , but please note that font changing packages like txfonts will not be used. Thanks a lot for the tips. I'll try them out as soon as I have some time. Georg PS: It is funny that you also use the math editor for calculations. I used to do that a lot for my thesis, but always thought I was the only one. I guess we're not the only ones. I even know some guys that do calculations directly in latex... boy, that should be fun... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Using LyX for calculations (was Rendering of LyX's math screen fonts.)
I only tried them out for very simple cases as well. Begging the pardon of LyX's developers, you'll find this resource much more developed in texmacs, if you're not aware of it: http://www.texmacs.org/tmweb/home/welcome.en.html There, you'll find interfaces for several different CAS, such as those you mentioned. On Thursday 07 November 2013 15:02:39 Jerry wrote: I know that LyX has hooks for some computer algebra systems (Mathematica, Maple, Maxima) and Octave. I have played with these a little (Octave and Mathematica) and it seems potentially useful but possibly not fully developed in LyX. I'm curious to know how you and others have used this corner of LyX. Jerry On Nov 7, 2013, at 1:30 PM, Georg Baum georg.b...@post.rwth-aachen.de wrote: PS: It is funny that you also use the math editor for calculations. I used to do that a lot for my thesis, but always thought I was the only one. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Rendering of LyX's math screen fonts.
On Thursday 07 November 2013 21:30:14 Georg Baum wrote: Rudi Gaelzer wrote: So I ask you LyXperts: is it possible to configure the math mode editor so that it uses also mathabx and other different math fonts? The roadmap to LyX 2.1 mentions enhanced support for math font selection (OpenType fonts) and support ofr cropped PDF/EPS. However, AFAIU, these enhancements will have an effect on IP and on the exported document. Seems to me that the math editor will still use the same screen fonts. Or am I wrong? You are right, the mentioned features do not affect the look of the math editor. However, there are some new symbols in 2.1, mainly from stmaryrd.sty and mathtools.sty. To some extent you can also add some on your own: The screen appearance of math symbols is defined in the file lib/symbols, which contains some very basic documentation for 2.1. Basically, there are three kinds of symbol definitions in that file: 1) symbols supported by special insets (like the decorations) 2) symbols supported by fonts (like the ones from fontmath.ltx) 3) symbols without any builtin support Adding symbols of type 1) and 2) requires some programming in LyX, and 2) requires also a true type font containing the symbols in a certain order, but symbols of type 3) can easily be added by users: All lines starting with \def are of this kind. For example, you could define \partialslash like this: \def\partialslash{\partial\kern-12mu/} The slash is a bit too short, but maybe there is a longer one already supported by mathed, which you could use instead. Although this looks like a TeX macro definition, it is not used for the output, only for display in LyX. There is basically no documentation how exactly this \def works, you have to use trial and error. You could also make the mathabx package load automatically if this symbol is used (works only for packages in the compiled in feature list of LyX, and mathabx is in there): \def\partialslash{\partial\kern-12mu/} mathabx I strongly advise against doing so, because this makes your LyX document depend on your personal installation, and it would not typeset on vanilla installations. This feature is rather for symbols distributed with the official symbols file. Finally, if you want some symbols to appear officially in LyX, you could add them to bug , but please note that font changing packages like txfonts will not be used. Thanks a lot for the tips. I'll try them out as soon as I have some time. Georg PS: It is funny that you also use the math editor for calculations. I used to do that a lot for my thesis, but always thought I was the only one. I guess we're not the only ones. I even know some guys that do calculations directly in latex... boy, that should be fun... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Using LyX for calculations (was Rendering of LyX's math screen fonts.)
I only tried them out for very simple cases as well. Begging the pardon of LyX's developers, you'll find this resource much more developed in texmacs, if you're not aware of it: http://www.texmacs.org/tmweb/home/welcome.en.html There, you'll find interfaces for several different CAS, such as those you mentioned. On Thursday 07 November 2013 15:02:39 Jerry wrote: I know that LyX has hooks for some computer algebra systems (Mathematica, Maple, Maxima) and Octave. I have played with these a little (Octave and Mathematica) and it seems potentially useful but possibly not fully developed in LyX. I'm curious to know how you and others have used this corner of LyX. Jerry On Nov 7, 2013, at 1:30 PM, Georg Baum georg.b...@post.rwth-aachen.de wrote: PS: It is funny that you also use the math editor for calculations. I used to do that a lot for my thesis, but always thought I was the only one. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Rendering of LyX's math screen fonts.
On Thursday 07 November 2013 21:30:14 Georg Baum wrote: > Rudi Gaelzer wrote: > > > So I ask you LyXperts: is it possible to configure the math mode editor so > > that it uses also mathabx and other different math fonts? The roadmap to > > LyX 2.1 mentions enhanced support for math font selection (OpenType fonts) > > and support ofr cropped PDF/EPS. However, AFAIU, these enhancements will > > have an effect on IP and on the exported document. Seems to me that the > > math editor will still use the same screen fonts. Or am I wrong? > > You are right, the mentioned features do not affect the look of the math > editor. However, there are some new symbols in 2.1, mainly from stmaryrd.sty > and mathtools.sty. To some extent you can also add some on your own: The > screen appearance of math symbols is defined in the file lib/symbols, which > contains some very basic documentation for 2.1. > Basically, there are three kinds of symbol definitions in that file: > > 1) symbols supported by special insets (like the decorations) > 2) symbols supported by fonts (like the ones from fontmath.ltx) > 3) symbols without any builtin support > > Adding symbols of type 1) and 2) requires some programming in LyX, and 2) > requires also a true type font containing the symbols in a certain order, > but symbols of type 3) can easily be added by users: All lines starting with > \def are of this kind. For example, you could define \partialslash like > this: > > \def\partialslash{\partial\kern-12mu/} > > The slash is a bit too short, but maybe there is a longer one already > supported by mathed, which you could use instead. Although this looks like a > TeX macro definition, it is not used for the output, only for display in > LyX. There is basically no documentation how exactly this \def works, you > have to use trial and error. You could also make the mathabx package load > automatically if this symbol is used (works only for packages in the > compiled in feature list of LyX, and mathabx is in there): > > \def\partialslash{\partial\kern-12mu/} mathabx > > I strongly advise against doing so, because this makes your LyX document > depend on your personal installation, and it would not typeset on vanilla > installations. This feature is rather for symbols distributed with the > official symbols file. > > Finally, if you want some symbols to appear officially in LyX, you could add > them to bug , but please note that font changing packages like txfonts > will not be used. Thanks a lot for the tips. I'll try them out as soon as I have some time. > > > Georg > > > PS: It is funny that you also use the math editor for calculations. I used > to do that a lot for my thesis, but always thought I was the only one. I guess we're not the only ones. I even know some guys that do calculations directly in latex... boy, that should be fun... > > > > -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Using LyX for calculations (was Rendering of LyX's math screen fonts.)
I only tried them out for very simple cases as well. Begging the pardon of LyX's developers, you'll find this resource much more developed in texmacs, if you're not aware of it: http://www.texmacs.org/tmweb/home/welcome.en.html There, you'll find interfaces for several different CAS, such as those you mentioned. On Thursday 07 November 2013 15:02:39 Jerry wrote: > I know that LyX has hooks for some computer algebra systems (Mathematica, > Maple, Maxima) and Octave. I have played with these a little (Octave and > Mathematica) and it seems potentially useful but possibly not fully developed > in LyX. > > I'm curious to know how you and others have used this corner of LyX. > > Jerry > > On Nov 7, 2013, at 1:30 PM, Georg Baum <georg.b...@post.rwth-aachen.de> wrote: > > > PS: It is funny that you also use the math editor for calculations. I used > > to do that a lot for my thesis, but always thought I was the only one. > -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Rendering of LyX's math screen fonts.
This is a recurrent problem for me, and I think it's for other as well. Certainly someone has already discussed this issue in this list (or in the devel list), but every time I take some time to browse through them, I cannot find it, or perhaps I'm not sufficiently knowledgeable on the internal working of LyX to really identify the subject... Anyway, whenever I'm editing a mathematical equation and have a need for a symbol not included in the standard latex and AMStex sets, I have to look for it elsewhere. A good place to look for new symbols is the 'The Comprehensive LaTeX Symbol List' http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf So, if I want the \partialslash symbol, I have to edit the preamble and insert \usepackage{mathabx}. If I want the double square bracket delimiters \ldbrack and \rdbrack, I have to \usepackage{txfonts}, and so forth. It works fine to generate the exported document in PDF or PS and also with Instant Preview. However, the math equation editor (or math mode) does not render non-AMS/latex symbols, but leaves them as ERT's. That's ok if you are creating a document with LyX, but for those of us that use LyX to make mathematical calculations as well, the rendition of all symbols goes a long way to facilitate the visualization of the mathematical expression. So I ask you LyXperts: is it possible to configure the math mode editor so that it uses also mathabx and other different math fonts? The roadmap to LyX 2.1 mentions enhanced support for math font selection (OpenType fonts) and support ofr cropped PDF/EPS. However, AFAIU, these enhancements will have an effect on IP and on the exported document. Seems to me that the math editor will still use the same screen fonts. Or am I wrong? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Rendering of LyX's math screen fonts.
This is a recurrent problem for me, and I think it's for other as well. Certainly someone has already discussed this issue in this list (or in the devel list), but every time I take some time to browse through them, I cannot find it, or perhaps I'm not sufficiently knowledgeable on the internal working of LyX to really identify the subject... Anyway, whenever I'm editing a mathematical equation and have a need for a symbol not included in the standard latex and AMStex sets, I have to look for it elsewhere. A good place to look for new symbols is the 'The Comprehensive LaTeX Symbol List' http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf So, if I want the \partialslash symbol, I have to edit the preamble and insert \usepackage{mathabx}. If I want the double square bracket delimiters \ldbrack and \rdbrack, I have to \usepackage{txfonts}, and so forth. It works fine to generate the exported document in PDF or PS and also with Instant Preview. However, the math equation editor (or math mode) does not render non-AMS/latex symbols, but leaves them as ERT's. That's ok if you are creating a document with LyX, but for those of us that use LyX to make mathematical calculations as well, the rendition of all symbols goes a long way to facilitate the visualization of the mathematical expression. So I ask you LyXperts: is it possible to configure the math mode editor so that it uses also mathabx and other different math fonts? The roadmap to LyX 2.1 mentions enhanced support for math font selection (OpenType fonts) and support ofr cropped PDF/EPS. However, AFAIU, these enhancements will have an effect on IP and on the exported document. Seems to me that the math editor will still use the same screen fonts. Or am I wrong? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Rendering of LyX's math screen fonts.
This is a recurrent problem for me, and I think it's for other as well. Certainly someone has already discussed this issue in this list (or in the devel list), but every time I take some time to browse through them, I cannot find it, or perhaps I'm not sufficiently knowledgeable on the internal working of LyX to really identify the subject... Anyway, whenever I'm editing a mathematical equation and have a need for a symbol not included in the standard latex and AMStex sets, I have to look for it elsewhere. A good place to look for new symbols is the 'The Comprehensive LaTeX Symbol List' http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf So, if I want the "\partialslash" symbol, I have to edit the preamble and insert "\usepackage{mathabx}". If I want the double square bracket delimiters "\ldbrack" and "\rdbrack", I have to \usepackage{txfonts}, and so forth. It works fine to generate the exported document in PDF or PS and also with Instant Preview. However, the math equation editor (or math mode) does not render non-AMS/latex symbols, but leaves them as ERT's. That's ok if you are creating a document with LyX, but for those of us that use LyX to make mathematical calculations as well, the rendition of all symbols goes a long way to facilitate the visualization of the mathematical expression. So I ask you LyXperts: is it possible to configure the math mode editor so that it uses also mathabx and other different math fonts? The roadmap to LyX 2.1 mentions enhanced support for math font selection (OpenType fonts) and support ofr cropped PDF/EPS. However, AFAIU, these enhancements will have an effect on IP and on the exported document. Seems to me that the math editor will still use the same screen fonts. Or am I wrong? -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Forward/reverse search and LuaTeX
For me, Forward/Reverse search only works with pdflatex. For Xelatex I probably should enter with some custom configuration. If anyone knows how to do it, please advise. Even with pdflatex, reverse search works ok, but for Forward search the --unique specification is not obeyed. Every time I want the jump LyX = PDF, a new instance of Okular is launched. On Tuesday 10 September 2013 08:00:04 stefano franchi wrote: Has anyone managed to get forward/reserve search fully working when using LuaTeX as a backend? Automatic setting fails with LuaTeX (for me, at least). I got reverse search (from pdf to lyx) working by following the manual setup instructions in the Additional Features manual: creating a custom format (pdf6: Luatex/Synctex) and changing the compilation instruction to: lualatex -synctex=1 $$i Regular LuaTeX compilation would otherwise fail with an Undefined control sequence error on the /synctex line in the preamble. But I cannot get the forward search (lyx--pdf) working properly. When I select Forward search from the pop-up dialog I always get a new okular instance. The Okular command in Tools-Preferences-Output-General is okular --unique $$o#src:$$n $$f Apparently, the unique flag is ignored. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Forward/reverse search and LuaTeX
On Thursday 17 October 2013 11:48:30 Rudi Gaelzer wrote: Even with pdflatex, reverse search works ok, but for Forward search the --unique specification is not obeyed. Every time I want the jump LyX = PDF, a new instance of Okular is launched. Actually, this is not rigorously true. The behavior is more puzzling than that. If I first open an okular instance with View - PDF (or clicking on the icon), from that window I can do Reverse search all right. However, if I ask for a Forward search, a second okular window opens on the correct location, and with this second window I can perform both Forward and Reverse. However, if I exit LyX, open the document again and select Navigate - Forward search as the first thing, LyX warns me that I should first compile the document... So, I guess that this is still an okular bug... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Forward/reverse search and LuaTeX
For me, Forward/Reverse search only works with pdflatex. For Xelatex I probably should enter with some custom configuration. If anyone knows how to do it, please advise. Even with pdflatex, reverse search works ok, but for Forward search the --unique specification is not obeyed. Every time I want the jump LyX = PDF, a new instance of Okular is launched. On Tuesday 10 September 2013 08:00:04 stefano franchi wrote: Has anyone managed to get forward/reserve search fully working when using LuaTeX as a backend? Automatic setting fails with LuaTeX (for me, at least). I got reverse search (from pdf to lyx) working by following the manual setup instructions in the Additional Features manual: creating a custom format (pdf6: Luatex/Synctex) and changing the compilation instruction to: lualatex -synctex=1 $$i Regular LuaTeX compilation would otherwise fail with an Undefined control sequence error on the /synctex line in the preamble. But I cannot get the forward search (lyx--pdf) working properly. When I select Forward search from the pop-up dialog I always get a new okular instance. The Okular command in Tools-Preferences-Output-General is okular --unique $$o#src:$$n $$f Apparently, the unique flag is ignored. Cheers, Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic StudiesPh: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Forward/reverse search and LuaTeX
On Thursday 17 October 2013 11:48:30 Rudi Gaelzer wrote: Even with pdflatex, reverse search works ok, but for Forward search the --unique specification is not obeyed. Every time I want the jump LyX = PDF, a new instance of Okular is launched. Actually, this is not rigorously true. The behavior is more puzzling than that. If I first open an okular instance with View - PDF (or clicking on the icon), from that window I can do Reverse search all right. However, if I ask for a Forward search, a second okular window opens on the correct location, and with this second window I can perform both Forward and Reverse. However, if I exit LyX, open the document again and select Navigate - Forward search as the first thing, LyX warns me that I should first compile the document... So, I guess that this is still an okular bug... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Forward/reverse search and LuaTeX
For me, Forward/Reverse search only works with pdflatex. For Xelatex I probably should enter with some custom configuration. If anyone knows how to do it, please advise. Even with pdflatex, reverse search works ok, but for Forward search the "--unique" specification is not obeyed. Every time I want the jump LyX => PDF, a new instance of Okular is launched. On Tuesday 10 September 2013 08:00:04 stefano franchi wrote: > Has anyone managed to get forward/reserve search fully working when using > LuaTeX as a backend? > Automatic setting fails with LuaTeX (for me, at least). > > I got reverse search (from pdf to lyx) working by following the manual > setup instructions in the Additional Features manual: creating a custom > format (pdf6: Luatex/Synctex) and changing the compilation instruction to: > > lualatex -synctex=1 $$i > > Regular LuaTeX compilation would otherwise fail with an "Undefined control > sequence" error on the /synctex line in the preamble. > > But I cannot get the forward search (lyx-->pdf) working properly. When I > select "Forward search" from the pop-up dialog I always get a new okular > instance. The Okular command in Tools->Preferences->Output->General is > > okular --unique "$$o#src:$$n $$f" > > > Apparently, the unique flag is ignored. > > > Cheers, > > Stefano > > -- > __ > Stefano Franchi > Associate Research Professor > Department of Hispanic StudiesPh: +1 (979) 845-2125 > Texas A University Fax: +1 (979) 845-6421 > College Station, Texas, USA > > stef...@tamu.edu > http://stefano.cleinias.org -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Forward/reverse search and LuaTeX
On Thursday 17 October 2013 11:48:30 Rudi Gaelzer wrote: > Even with pdflatex, reverse search works ok, but for Forward search the > "--unique" specification is not obeyed. Every time I want the jump LyX => > PDF, a new instance of Okular is launched. Actually, this is not rigorously true. The behavior is more puzzling than that. If I first open an okular instance with View -> PDF (or clicking on the icon), from that window I can do Reverse search all right. However, if I ask for a Forward search, a second okular window opens on the correct location, and with this second window I can perform both Forward and Reverse. However, if I exit LyX, open the document again and select Navigate -> Forward search as the first thing, LyX warns me that I should first compile the document... So, I guess that this is still an okular bug... -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Cross-reference to subeq. within subequations environ
Ok, I know I should've first read the whole AMSmath documentation before asking this but... this is faster... Say I have a bunch of equations within a labeled subequations environment. Something like (in LaTeX): ... \begin{subequations} \label{eq:eq1} \begin{equation} Some math \end{equation} Some text \begin{align} Some math \\ Some math \\ Some math \end{align} \end{subequations} ... \ref{eq:eq1} ... The equations are all labeled with the same number and with the roman subnumbers from a through d. As long as I'm aware, I can only \ref{} the main label. I can not make an automatic reference to a particular subequation unless I label it as well. If I don't do it, I have to write the roman subnumber manually. However, if I later on insert another equation within the subequations, I'll have to scan the whole document and fix the subnumbers in all cross references... Does anyone know of a way to automatize this process? Without having to label individual eqs, I mean. Perhaps there's a package in CTAN that I don't know of. And does LyX support it? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Cross-reference to subeq. within subequations environ
Ok, I know I should've first read the whole AMSmath documentation before asking this but... this is faster... Say I have a bunch of equations within a labeled subequations environment. Something like (in LaTeX): ... \begin{subequations} \label{eq:eq1} \begin{equation} Some math \end{equation} Some text \begin{align} Some math \\ Some math \\ Some math \end{align} \end{subequations} ... \ref{eq:eq1} ... The equations are all labeled with the same number and with the roman subnumbers from a through d. As long as I'm aware, I can only \ref{} the main label. I can not make an automatic reference to a particular subequation unless I label it as well. If I don't do it, I have to write the roman subnumber manually. However, if I later on insert another equation within the subequations, I'll have to scan the whole document and fix the subnumbers in all cross references... Does anyone know of a way to automatize this process? Without having to label individual eqs, I mean. Perhaps there's a package in CTAN that I don't know of. And does LyX support it? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Cross-reference to subeq. within subequations environ
Ok, I know I should've first read the whole AMSmath documentation before asking this but... this is faster... Say I have a bunch of equations within a labeled subequations environment. Something like (in LaTeX): ... \begin{subequations} \label{eq:eq1} \begin{equation} \end{equation} \begin{align} \\ \\ \end{align} \end{subequations} ... \ref{eq:eq1} ... The equations are all labeled with the same number and with the roman subnumbers from a through d. As long as I'm aware, I can only \ref{} the main label. I can not make an automatic reference to a particular subequation unless I label it as well. If I don't do it, I have to write the roman subnumber manually. However, if I later on insert another equation within the subequations, I'll have to scan the whole document and fix the subnumbers in all cross references... Does anyone know of a way to automatize this process? Without having to label individual eqs, I mean. Perhaps there's a package in CTAN that I don't know of. And does LyX support it? Thanks. -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741
Re: Display of Inkscape svg images not working.
Hi, Scott and Paul. Thanks for the suggestion. Running lyx on debug mode provided some information. See the dbg file attached. I deleted my ~/.lyx/preferences file, reconfigured lyx, closed and opened it again, as usual. Got the same problem... I was puzzled because I could not find any error message in any file created in the ./tmp/lyx_tmpdir. directories. What I'm trying to do here is the following: I have a JPEG image which I want to edit somehow. I'm doing this with xfig, Ipe and Inkscape, all of which can apply layers over the original image that contain the modifications I want to make. So far, the only vector graphics app that works well with Instant Preview is Ipe. With Inkscape, I initially imported the JPEG figure using the link option, which simply creates a link (duh!) to the original JPEG image. In the debug test I'm sending attached, I created a newfile1.lyx text where I first inserted the original JPEG and then the Inkscape (*.svg) image. Instant preview worked well with the jpeg, but I got the same blank square for the svg. It seems that lyx was not able to follow the symbolic link contained in the svg file to the jpeg image. Take a look at the last lines of the dbg. After this test I decided to create another Inkscape svg file, where I inserted the jpeg with the embed option. This time, I was able to view the image on lyx. I guess this is why Ipe works, since it always embed the imported images into its *.ipe files... Anyway, I hope this is useful somehow. Thanks again. On Saturday 27 April 2013 18:00:10 Scott Kostyshak wrote: I'm not having this problem on Ubuntu 12.04 using LyX 2.0.x and LyX 2.1 development. Are you sure you need to define the converters manually? There's a lot of old info on that wiki page. Have you tried without? Just delete your prefs, reconfigure LyX, and restart. If that doesn't work, you might get some useful information from 'lyx -dbg graphics'. Scott -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741rudi@pcpl7-placa2|lyxlyx -dbg graphics newfile1.lyx Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Fontconfig warning: /etc/fonts/conf.d/50-user.conf, line 9: reading configurations from ~/.fonts.conf is deprecated. FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (945): Recognised Fileformat: agr FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! LyX: BN_BIND: Unknown LyX function `math-number' [around line 56 of file /tmp/convert_bind.MT4363 current token: 'math-number' context: ''] LyX: BN_BIND: Unknown LyX function `math-nonumber' [around line 57 of file /tmp/convert_bind.MT4363 current token: 'math-nonumber' context: ''] KeyMap.cpp (392): KeyMap::read: error while reading bind file:/tmp/convert_bind.MT4363 FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! KeyMap.cpp (392): KeyMap::read: error while reading bind file:/usr/share/lyx/bind/cua.bind FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format
Re: Display of Inkscape svg images not working.
Hi, Scott and Paul. Thanks for the suggestion. Running lyx on debug mode provided some information. See the dbg file attached. I deleted my ~/.lyx/preferences file, reconfigured lyx, closed and opened it again, as usual. Got the same problem... I was puzzled because I could not find any error message in any file created in the ./tmp/lyx_tmpdir. directories. What I'm trying to do here is the following: I have a JPEG image which I want to edit somehow. I'm doing this with xfig, Ipe and Inkscape, all of which can apply layers over the original image that contain the modifications I want to make. So far, the only vector graphics app that works well with Instant Preview is Ipe. With Inkscape, I initially imported the JPEG figure using the link option, which simply creates a link (duh!) to the original JPEG image. In the debug test I'm sending attached, I created a newfile1.lyx text where I first inserted the original JPEG and then the Inkscape (*.svg) image. Instant preview worked well with the jpeg, but I got the same blank square for the svg. It seems that lyx was not able to follow the symbolic link contained in the svg file to the jpeg image. Take a look at the last lines of the dbg. After this test I decided to create another Inkscape svg file, where I inserted the jpeg with the embed option. This time, I was able to view the image on lyx. I guess this is why Ipe works, since it always embed the imported images into its *.ipe files... Anyway, I hope this is useful somehow. Thanks again. On Saturday 27 April 2013 18:00:10 Scott Kostyshak wrote: I'm not having this problem on Ubuntu 12.04 using LyX 2.0.x and LyX 2.1 development. Are you sure you need to define the converters manually? There's a lot of old info on that wiki page. Have you tried without? Just delete your prefs, reconfigure LyX, and restart. If that doesn't work, you might get some useful information from 'lyx -dbg graphics'. Scott -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741rudi@pcpl7-placa2|lyxlyx -dbg graphics newfile1.lyx Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Fontconfig warning: /etc/fonts/conf.d/50-user.conf, line 9: reading configurations from ~/.fonts.conf is deprecated. FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (945): Recognised Fileformat: agr FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! LyX: BN_BIND: Unknown LyX function `math-number' [around line 56 of file /tmp/convert_bind.MT4363 current token: 'math-number' context: ''] LyX: BN_BIND: Unknown LyX function `math-nonumber' [around line 57 of file /tmp/convert_bind.MT4363 current token: 'math-nonumber' context: ''] KeyMap.cpp (392): KeyMap::read: error while reading bind file:/tmp/convert_bind.MT4363 FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! KeyMap.cpp (392): KeyMap::read: error while reading bind file:/usr/share/lyx/bind/cua.bind FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format
Re: Display of Inkscape svg images not working.
Hi, Scott and Paul. Thanks for the suggestion. Running lyx on debug mode provided some information. See the dbg file attached. I deleted my ~/.lyx/preferences file, reconfigured lyx, closed and opened it again, as usual. Got the same problem... I was puzzled because I could not find any error message in any file created in the ./tmp/lyx_tmpdir. directories. What I'm trying to do here is the following: I have a JPEG image which I want to edit somehow. I'm doing this with xfig, Ipe and Inkscape, all of which can apply layers over the original image that contain the modifications I want to make. So far, the only vector graphics app that works well with Instant Preview is Ipe. With Inkscape, I initially imported the JPEG figure using the "link" option, which simply creates a link (duh!) to the original JPEG image. In the debug test I'm sending attached, I created a newfile1.lyx text where I first inserted the original JPEG and then the Inkscape (*.svg) image. Instant preview worked well with the jpeg, but I got the same blank square for the svg. It seems that lyx was not able to follow the symbolic link contained in the svg file to the jpeg image. Take a look at the last lines of the dbg. After this test I decided to create another Inkscape svg file, where I inserted the jpeg with the "embed" option. This time, I was able to view the image on lyx. I guess this is why Ipe works, since it always embed the imported images into its *.ipe files... Anyway, I hope this is useful somehow. Thanks again. On Saturday 27 April 2013 18:00:10 Scott Kostyshak wrote: > I'm not having this problem on Ubuntu 12.04 using LyX 2.0.x and LyX > 2.1 development. Are you sure you need to define the converters > manually? There's a lot of old info on that wiki page. Have you tried > without? Just delete your prefs, reconfigure LyX, and restart. > > If that doesn't work, you might get some useful information from 'lyx > -dbg graphics'. > > Scott -- Rudi Gaelzer Institute of Physics Federal University of Rio Grande do Sul BRAZIL Registered linux user # 153741rudi@pcpl7-placa2|lyx>lyx -dbg graphics newfile1.lyx Setting debug level to graphics Debugging `graphics' (Graphics conversion and loading) Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated. FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (945): Recognised Fileformat: agr FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! LyX: BN_BIND: Unknown LyX function `math-number' [around line 56 of file /tmp/convert_bind.MT4363 current token: 'math-number' context: ''] LyX: BN_BIND: Unknown LyX function `math-nonumber' [around line 57 of file /tmp/convert_bind.MT4363 current token: 'math-nonumber' context: ''] KeyMap.cpp (392): KeyMap::read: error while reading bind file:/tmp/convert_bind.MT4363 FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! FileName.cpp (950): filetools(getFormatFromContents) Couldn't find a known format! KeyMap.cpp (392): KeyMap::read: error while reading bind file:/usr/share/lyx/bind/cua.bind FileName.cpp (832): filetools(getFormatFromContents) File type not recognised before EOF! FileName.cpp (950): fi
Display of Inkscape svg images not working.
Using here: LyX 2.0.5.1 Fedora 18 w/ TeXlive 2013. As per instructions on: http://wiki.lyx.org/Tips/UseInkscapeSVGImages#Inkscape I configured my ~/.lyx/preferences file including the following lines: ---(excerpt)--- # # FORMATS SECTION ## # \format svg svg SVG inkview inkscape vector # # CONVERTERS SECTION ## # \converter svg pdf inkscape --export-area-drawing $$i --export-pdf=$$o \converter svg eps inkscape $$i --export-eps=$$o \converter svg png inkscape $$i --export-png=$$o -- Exporting to PDF works fine, but the image is not displayed on LyX. It just shows a pink square where the image was supposed to be Anyone having the same problem? Ipe, another vector graphics app, works fine, both in instant display and in the output to PDF. -- Rudi Gaelzer Registered Linux user # 153741
Display of Inkscape svg images not working.
Using here: LyX 2.0.5.1 Fedora 18 w/ TeXlive 2013. As per instructions on: http://wiki.lyx.org/Tips/UseInkscapeSVGImages#Inkscape I configured my ~/.lyx/preferences file including the following lines: ---(excerpt)--- # # FORMATS SECTION ## # \format svg svg SVG inkview inkscape vector # # CONVERTERS SECTION ## # \converter svg pdf inkscape --export-area-drawing $$i --export-pdf=$$o \converter svg eps inkscape $$i --export-eps=$$o \converter svg png inkscape $$i --export-png=$$o -- Exporting to PDF works fine, but the image is not displayed on LyX. It just shows a pink square where the image was supposed to be Anyone having the same problem? Ipe, another vector graphics app, works fine, both in instant display and in the output to PDF. -- Rudi Gaelzer Registered Linux user # 153741