Parsing of math expressions

2024-08-15 Thread Rudi Gaelzer
My system:
LyX 2.4.1
Qt Version: 6.7.2 on platform wayland
Fedora Linux 40 (KDE Plasma)

Since the last upgrade it seems that a very useful property has been lost.
Before, whenever Mathematica worked out some mathematical result, I would 
TeXForm it, thereby generating the LaTeX source, copy it and paste it into LyX 
in any mathematical environment.  LyX would always parse correctly the LaTeX 
expression.
Now, I always get the commands, without parsing.  Is there some configuration 
that changed since the last update?
-- 
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
Usuário de Linux registrado # 153741


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Runaway memory consumption during copy-paste operation

2024-08-14 Thread Rudi Gaelzer
That may be it.
The description mentioned the \boxed{...} inset.  I ran a quick test and 
indeed, the CPU usage spiked to 100% when I tried to copy a math expression 
enclosed by \boxed, whereas that did not happen with previous snippets.

The change tracking mentioned that the patch will be added to v. 2.4.2.  I 
think I'll wait until then and work around \boxed's meanwhile.

Thanks.

On quarta-feira, 14 de agosto de 2024 12:17:52 BRT Jürgen Spitzmüller wrote:
> Maybe this one?
> https://www.lyx.org/trac/ticket/13069

-- 
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


Runaway memory consumption during copy-paste operation

2024-08-14 Thread Rudi Gaelzer
My system:
LyX 2.4.1
Qt Version: 6.7.2 on platform wayland
Fedora Linux 40 (KDE Plasma)

Since the last update, I noticed something that must be some kind of bug.
I frequently edit LyX files (exercise lists, tests, etc) employing copy-paste 
operations from earlier files.
Since the last update, I noticed that very frequently a copy operation will 
hang the box, starting to first consume all available RAM and then all 
available swap, rendering thus the machine almost completely unresponsive.
The only thing I can do then is to kill the lyx process.

This happened already with two different machines (notebook and desktop), both 
with the same configuration.  All the times this happened, the original copied 
text was inside a branch.  I don't know if this is relevant.

Has anyone ran into the same problem?
-- 
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


RevTeX 4: sectioning commands inside widetext

2024-03-06 Thread Rudi Gaelzer
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

2022-06-21 Thread Rudi Gaelzer
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)

2022-06-21 Thread Rudi Gaelzer
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

2022-06-21 Thread Rudi Gaelzer
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

2022-06-21 Thread Rudi Gaelzer
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

2022-06-21 Thread Rudi Gaelzer
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

2022-06-21 Thread Rudi Gaelzer
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

2022-06-20 Thread Rudi Gaelzer
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

2022-06-15 Thread Rudi Gaelzer
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

2021-07-23 Thread Rudi Gaelzer
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

2021-07-23 Thread Rudi Gaelzer
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.

2021-07-21 Thread Rudi Gaelzer
(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.

2021-07-21 Thread Rudi Gaelzer
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.

2021-07-20 Thread Rudi Gaelzer
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.

2021-07-20 Thread Rudi Gaelzer
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

2021-03-11 Thread Rudi Gaelzer
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

2021-03-11 Thread Rudi Gaelzer
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

2020-12-09 Thread Rudi Gaelzer
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

2020-12-08 Thread Rudi Gaelzer
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

2020-12-08 Thread Rudi Gaelzer
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

2020-08-12 Thread Rudi Gaelzer
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

2020-08-05 Thread Rudi Gaelzer
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

2020-06-05 Thread Rudi Gaelzer
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

2020-06-04 Thread Rudi Gaelzer
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

2020-06-04 Thread Rudi Gaelzer
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

2020-06-04 Thread Rudi Gaelzer
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

2020-06-03 Thread Rudi Gaelzer
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

2019-09-11 Thread Rudi Gaelzer
> 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

2019-09-01 Thread Rudi Gaelzer
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

2019-08-26 Thread Rudi Gaelzer
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

2019-08-24 Thread Rudi Gaelzer
> > 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

2019-08-23 Thread Rudi Gaelzer
>
> 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

2019-08-23 Thread Rudi Gaelzer
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

2019-08-14 Thread Rudi Gaelzer
 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

2019-08-10 Thread Rudi Gaelzer
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

2019-04-11 Thread Rudi Gaelzer
> 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

2019-04-03 Thread Rudi Gaelzer
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

2018-10-15 Thread Rudi Gaelzer
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

2016-12-30 Thread Rudi Gaelzer
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

2016-12-29 Thread Rudi Gaelzer
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

Re: Rolling lists in Beamer

2016-12-07 Thread Rudi Gaelzer
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 :
> > 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

2016-12-07 Thread Rudi Gaelzer
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 :
> > 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

2016-12-07 Thread Rudi Gaelzer
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.

2016-06-11 Thread Rudi Gaelzer
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.

2016-06-11 Thread Rudi Gaelzer
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

2016-01-26 Thread Rudi Gaelzer
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


Re: Export to TeX Needs Article-Specific .bib File

2016-01-26 Thread Rudi Gaelzer
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


Change tracking: no change bar in PDF output

2015-12-31 Thread Rudi Gaelzer
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

2015-10-20 Thread Rudi Gaelzer
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

2015-10-13 Thread Rudi Gaelzer
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.

2015-05-29 Thread Rudi Gaelzer
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

2015-03-20 Thread Rudi Gaelzer
On Thursday 19 March 2015 13:19:43 Stephan Witt wrote:
> Am 19.03.2015 um 12:32 schrieb Rudi Gaelzer :
> > 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

2015-03-19 Thread Rudi Gaelzer
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

2014-09-05 Thread Rudi Gaelzer
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

2014-09-04 Thread Rudi Gaelzer
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

2014-06-27 Thread Rudi Gaelzer
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&m=117565214529188&w=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  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

2014-06-26 Thread Rudi Gaelzer
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...

2014-05-21 Thread Rudi Gaelzer
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.

2014-04-22 Thread Rudi Gaelzer
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: Using LyX for calculations (was Rendering of LyX's math screen fonts.)

2013-11-08 Thread Rudi Gaelzer
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  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.

2013-11-08 Thread Rudi Gaelzer
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


Rendering of LyX's math screen fonts.

2013-11-07 Thread Rudi Gaelzer
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

2013-10-17 Thread Rudi Gaelzer
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

2013-10-17 Thread Rudi Gaelzer
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&M 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


Cross-reference to subeq. within subequations environ

2013-09-04 Thread Rudi Gaelzer
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.

2013-05-02 Thread Rudi Gaelzer
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: 

Display of Inkscape svg images not working.

2013-04-27 Thread Rudi Gaelzer
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


Re: Weird behaviour with XeLaTeX.

2013-04-04 Thread Rudi Gaelzer
On Thursday 04 April 2013 10:49:06 Scott Kostyshak wrote:
> This is a regression that I reported a few days ago and should be
> fixed soon hopefully. In the meantime, you can try the following:
> 
> In luatex-hyphen.lua's adddialect(), replace the line
> 
> data = language_dat[language]
> 
> with
> 
> data = lookupname(language)

That didn't work.  The pdf is generated, but then okular is not able to find 
the fonts...


> In Document Settings > Output, is the default output format set? This
> overrides the preferences default output.

That did work... I had "Default" set as the default output format.  Changing to 
PDF (XeTeX) forced lyx to call xelatex, with no hyphenation problem as well... 
So, I guess lyx will rather use LuaTeX instead as XeTeX as the default pdf 
creation engine for non-tex fonts, huh?

Thanks a lot for the tips...
 -- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Weird behaviour with XeLaTeX.

2013-04-04 Thread Rudi Gaelzer
Using Lyx 2.0.5.1 w/ Fedora 18, TeXLive 2012 from Fedora updates.

In Tools -> Preferences -> File Handling -> File Formats I set PDF (XeTeX) as 
Default Format.
In Document -> Settings -> Fonts I checked Use non-TeX fonts (via XeTeX/LuaTeX).
Then I chose the Linux Liberation fonts (serif, sans, mono).

When I tried to generate the pdf output, I got an error with the fonts.  The 
first error message in the LaTeX log is:

==
! LuaTeX error ...exlive/texmf-dist/tex/luatex/luatexbase/modutils.lua:52: modu
le 'lualibs' not found
==

So, I installed the texlive-lualibs package and the processing went a bit 
further.
However, I subsequently ran into an hyphenation error:

==
This is LuaTeX, Version beta-0.70.2-2013031016 (TeX Live 2013/dev) 
(format=dvilualatex 2013.3.25)  4 APR 2013 11:21
 restricted \write18 enabled.

LaTeX2e <2011/06/27>
LuaTeX adaptation of babel  and hyphenation patterns for engl
ish, dumylang, nohyphenation, loaded.
.
! LuaTeX error ...ve/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:53: luat
ex-hyphen: no entry in language.dat.lua for this language: brazil
==

My system did not create the dvilualatex format with the (brazilian) portuguese 
hyphenation patterns.  Of course the xelatex format has those patterns.  Nor 
did I find out so far how to force my system to recreate the format with the 
brazilian hyphenation patterns.

What I find strange is that lyx will invoke lulalatex to process the text with 
liberation fonts, even when I explicitly chose xelatex as the rendering engine.
Is this an expected behaviour?

-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Latin extended character works with pdflatex but not with xetex.

2012-08-08 Thread Rudi Gaelzer
I think this is more a latex-related problem than lyx-related...
I want to generate the $\v{S}$ character.  I entered it with
Insert -> Special Character -> Symbols -> Latin-Extended-A
The character is correctly displayed if I use pdflatex, but it doesn't
show up with xetex.
Ok, I could simply stick to pdflatex, but for xetex, should I be using
any special package with it?
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Instant preview with TeXLive 2012 (final)

2012-07-05 Thread Rudi Gaelzer
Ok. I've just found out that the tex-preview rpm is being distributed
now by the official
fedora repository.  I installed it and got a partial success, since the
equations are being rendered again, except for the numbered ones.  I don't
know the reason why.


On Thu, Jul 5, 2012 at 11:04 AM, Rudi Gaelzer  wrote:
> For those of you using Fedora TeXLive 2012, which has been recently
> updated  to the final revision:
> http://www.linux.cz/pipermail/texlive/2012-June/000505.html
>
> Since this last revision, instant preview did not work any longer.  I
> guess the reason is that there is no longer a texlive-preview package
> available, which provides the style preview.sty.  AFAIK, this style
> file is needed to enable instant preview.
>
> I just wanted someone to confirm that this is indeed the case, and if
> there is another alternative, apart from waiting for the preview
> package to come back to the fedora texlive repository.
>
> Thanks.
> --
> Rudi Gaelzer
> Department of Physics
> Institute of Physics and Mathematics
> Federal University of Pelotas
> BRAZIL
> Registered linux user # 153741


Instant preview with TeXLive 2012 (final)

2012-07-05 Thread Rudi Gaelzer
For those of you using Fedora TeXLive 2012, which has been recently
updated  to the final revision:
http://www.linux.cz/pipermail/texlive/2012-June/000505.html

Since this last revision, instant preview did not work any longer.  I
guess the reason is that there is no longer a texlive-preview package
available, which provides the style preview.sty.  AFAIK, this style
file is needed to enable instant preview.

I just wanted someone to confirm that this is indeed the case, and if
there is another alternative, apart from waiting for the preview
package to come back to the fedora texlive repository.

Thanks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


PDF handling in Instant Preview

2012-06-15 Thread Rudi Gaelzer
How does LyX handle pdf files to show them with Instant Preview?

In Preferences -> File Handling -> File Formats, any PDF option uses xdg-open 
as viewer, which in my case is Okular (using KDE here).  

However, when Instant Preview is going to display a pdf image for the first 
time, it apparently uses gs (ghostscript) to convert the PDF to EPS first.  On 
itself, this is no big deal, but the problem is that for some reason gs takes 
a long time converting the image, and when I have a text with a lot of figures, 
it can be quite a PITA.

Is there any alternative for me in this case?
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Change math Language - critical

2012-05-23 Thread Rudi Gaelzer
Ignacio, the best solution is to define a math macro: go to the beginning of 
your text and click on  
Insert -> Math -> Macro
An ERT box will appear, where you can (re)define your macro.  In place of 
\newmacroname type \sen.  In the TeX box type:
\mathop \mathrm{sen}\nolimits
In the LyX box simply type:
\mathrm{sen}

That's all, you'll be able to see the coveted "sen" symbol in instant preview 
and the output (dvi, eps, pdf) will also be correctly rendered.

I do that all the time with my texts in Portuguese for mathematical symbols 
such as sen, senh, sech, cosech, cotan, cosec, etc.

If you want to use the macros in other docs, save them in, say, 
Spanish-macros.lyx and then simply do Insert -> File -> Child Document... to 
input (not include) the macros in any other doc.

On Saturday 19 May 2012 09:45:31 Julio Rojas wrote:
> What a bummer...
> 
> One question. Shouldn't it be better that Lyx recognizes localization
> and instead of using "\sin" uses "\sen"? Is it even possible or
> desirably?
> 
> The really good question is why, oh why, LaTeX doesn't do it
> automatically so Lyx has to do it only on-screen.
> 
> Regards.
> -
> Julio Rojas
> jcredbe...@gmail.com
> 
> 
> On Sat, May 19, 2012 at 8:48 AM, Ignacio García
> 
>  wrote:
> > On fry 8 May 2012 Kenedy Torcatt wrote
> > 
> >> Hey guys... I'm working with lyx in spanish, The mathematical operator
> >> like sin are showing in english "sin". I need this math operators in
> >> spanish, I mean "sen".
> >> How can I do this with lyx? I'm using latest version 2.0.3.
> >> 
> >> Thankyou in advance.
> >> 
> >> P.S: I already set the language in spanish, everything else is fine
> > 
> > (in spanish).
> > 
> > The function 'sen' is predefined in the latex package babel-spanish,
> > so you write in math mode the command \sen and you get sen, that's all
> > E.g., in math mode insert
> > \sen space a
> > 
> > 
> > and the output is
> > sen a
> > This command are not available in the math panels
> > 
> > There is info about the functions predefined in Spanish (sen, arcsen,
> > tg,...)
> > in the section 15.1 of the spanish version manual 'Math' (Ecuaciones)
> > 
> > 
> > 
> > I.G.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


How to load xr-hyper before hyperref?

2012-05-23 Thread Rudi Gaelzer
I'd like to use the facilities of the xr-hyper package to
cross-reference equations (or other things) labelled in another doc
and at the same time create a pdf (using xetex) with the whole
hyper-ref stuff (using the hyperref package).

The problem is, the xr-hyper pack should be loaded on the preamble
BEFORE hyperref, otherwise errors such as "Paragraph ended before ...
was complete" can appear.

The only place I can order LyX to load xr-hyper is on the doc's local
preamble, but in this case, the package will be loaded always after
hyperref.

Is there any way I can circumvent this limitation?

Thanks.

-- 
Rudi Gaelzer
Registered Linux user # 153741


Macros and preview in child documents (reborn)

2012-05-08 Thread Rudi Gaelzer
I would like to know if the topic discussed in this thread:
http://marc.info/?l=lyx-users&m=116195922003640&w=2
has evolved since 2006.

I have a lot of math macros defined on the preamble of a master document, which 
has several childs.  When I process the document, the math macros are 
correctly parsed on the output (pdf) of all child documents, but instant 
preview does not display the correct layout for the macro.  Usualy, it will 
only show a blank instead.

A workaround I've found is to define the macros not on the master's preamble, 
but on its body, using LyX's function at Insert -> Math -> Macro.  That way, 
the math expressions is correctly displayed on all child docs.

Is there another way to do this?
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: cross-referencing between files

2011-08-19 Thread Rudi Gaelzer
You mean, you're working with a child document only, without opening the master?
I'd think this should work...

I use Richard's suggestion of loading the xr package when the cross-reference 
happens with unrelated 
documents, i. e., outside a master-child structure.  In this case, I have to 
generate and keep the *.aux 
file of the documents for the xr package to be able to pick up the labels.

On Wednesday, August 17, 2011 12:58:49 PM Ramiro Magno wrote:
> Hi
> 
> I've been googling about how to do cross-referencing between two lyx
> documents. None of the solutions I've seen so far worked for me. My
> attempts consisted of having a master lyx file which includes
> (Insert->File->Child document, include type=include) two other lyx files.
> Then I try to refer to a label in one file from the other. This works as
> long as I'm building the whole document, i.e. the master. If I try to
> build only one of them it does not work, I get the double question mark
> (??)... The goal is the writing of a paper which has supplementary
> material which needs referring. But besides the cross-referencing the two
> documents should be pretty much independent (indep. page numbering,
> titles, etc..) so I need to build them separately.
> 
> Thanks.
> Ramiro

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
BRAZIL
Phone: +55-53-275-7468
FAX: +55-53-275-7343


Re: Error reading theorem modules. [SOLVED]

2011-08-10 Thread Rudi Gaelzer
Of course that's the problem!  How silly of me.

I changed those modules back in the days when the internationalization was not 
complete 
and then simply forgot about them...

Sorry for the newbie question...

On Monday 08 August 2011 18:59:55 Paul Rubin wrote:
> Rudi Gaelzer  gmail.com> writes:
> > Is it possible that the texlive 2010 version in F15 is lacking the
> > needed packages?  I
> > have the F14 version of texlive 2010 installed in another workstation
> > and that works all right.
> 
> I don't think so; the only packages "by type" uses are amsmath.sty and
> amsthm.sty, and without those all the AMS theorem modules should be borked.
> 
> I just tried on my laptop (Linux Mint, TeXLive 2010) and got the same error
> you did.  Then I looked in ~/.lyx/layouts and saw that I had old versions
> of some of the .inc files used by the theorem modules.  I deleted those,
> reconfigured LyX and the module is now working.  So you might check there.
> 
> Paul

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Error reading theorem modules.

2011-08-08 Thread Rudi Gaelzer
I've just upgraded my laptop box to Fedora 15, with texlive 2010-fc15.

Since then, when I try to load the Theorem-AMS-Bytype modules (using book 
layout and 
class), I get the error messages:

"Error reading module theorem-ams-bytype"

The strange thing is that the usual Theorems (AMS) module works with no 
troubles.  It's 
just when I try to load instead the Theorems (AMS, Numbered by Type) module 
that I get the 
error messages.

Is it possible that the texlive 2010 version in F15 is lacking the needed 
packages?  I 
have the F14 version of texlive 2010 installed in another workstation and that 
works all 
right.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: tetex -> texlive

2011-07-20 Thread Rudi Gaelzer
I've been using the texlive 2010 repository since Fedora 14 and had no greater 
problem than having to 
manually install/replace some individual packages, depending on the 
classes/modules employed by the 
document.
The transition F14 -> F15 was also uneventful.

On Sunday, July 17, 2011 02:02:10 PM Rich Shepard wrote:
>I've just replaced the tetex I've used for years with texlive-20100722.
> LyX fires right up. What I want to know is if there are potential gotcha's
> due to the transition. I expect not, but I'd like to be sure before I hit
> one during a critical event (such as a deadline to produce a document).
> 
> Rich

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
BRAZIL
Phone: +55-53-275-7468
FAX: +55-53-275-7343


Re: Translations of Math environments in LyX output - last call for LyX 2.0

2011-04-13 Thread Rudi Gaelzer
Ok, Pavel.
With RC3, everything seems to be working with the translations of theorem 
environments to brazilian portuguese.
I'll let you know should anything untoward happens...
Thanks a lot for your effort!

On Friday 08 April 2011 12:35:13 Pavel Sanda wrote:
> Rudi Gaelzer wrote:
> > Moreover, I would like to suggest some different translations that should
> > sound better in brazilian portuguese (in fact, they don't even appear in
> > modern dictionaries of pt_br):
> > 
> > Assumption => Suposiç?o
> > Fact => Fato
> 
> Rudi, please check with RC3 that the output looks like you proposed.
> just committed the changes in http://www.lyx.org/trac/changeset/38309 .
> pavel

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Translations of Math environments in LyX output - last call for LyX 2.0

2011-04-09 Thread Rudi Gaelzer
Ok.  Will do, as soon as it goes to the yum repository.

As for the translation I proposed for "Assumption", as I said before, 
"assumpção" no longer appears in modern dictionaries. Besides "suposição", 
other possible translations could be "pressuposto" and "hipótese", but this 
last word would relate better to "hypothesis".


On Friday 08 April 2011 12:35:13 Pavel Sanda wrote:
> Rudi Gaelzer wrote:
> > Moreover, I would like to suggest some different translations that should
> > sound better in brazilian portuguese (in fact, they don't even appear in
> > modern dictionaries of pt_br):
> > 
> > Assumption => Suposiç?o
> > Fact => Fato
> 
> Rudi, please check with RC3 that the output looks like you proposed.
> just committed the changes in http://www.lyx.org/trac/changeset/38309 .
> pavel

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354
96001-970 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Re: Translations of Math environments in LyX output - last call for LyX 2.0

2011-04-06 Thread Rudi Gaelzer
What should be done with this information?
Right now, I don't have time as well, but in a fortnight I could be somewhat 
"freer" and could lend a hand.
Alas, I never did this, so I don't know, for example, if only the files listed 
below need to be modified and how to do it...
Is there any template I could look at?

On Wednesday 06 April 2011 08:29:07 Pavel Sanda wrote:
> Georg Baum wrote:
> > >> Concerning the translation to brazilian portuguese, your structure
> > >> works with your template file (localization_test_1.lyx), which
> > >> employs the Theorems (AMS) and Theorems (AMS-Extended ) modules.
> > >> However, when I try the numbered by type modules, I detect the same
> > > 
> > >> problems I already mentioned in my previous threads:
> > > you attached wrong document, because its identical to the previous
> > > one... anyway i can reproduce your problem. it seems that our
> > > mechanism is not working for all AMS modules. Georg?
> > 
> > These styles are missing the LangPreamble and BabelPreamble tags, since
> > they did not exist yet when those tags were introduced. Somebody should
> > go through all modules that have been added after the initial
> > translation support (Feb. 2009) and add these tags where it makes sense.
> > Unfortunately I have no time do so ATM. Fortunately the mentioned
> > theorems will most probably not produce new strings for
> > lib/layouttranslations.
> 
> this should go before next RC. i have no idea which modules need this
> but for consitency at least the theorem ones? i went through theorems*
> in layout and found those have no LangPreamble string:
> 
> theorems-ams-bytype.inc
> theorems-ams-bytype.module
> theorems-ams-extended-bytype.module
> theorems-ams.module
> theorems-bytype.inc
> theorems-bytype.module
> theorems-chap-bytype.module
> theorems-chap.module
> theorems-named.module
> theorems-order.inc
> theorems-proof.inc
> theorems-refprefix.inc
> theorems-sec-bytype.module
> theorems-sec.module
> theorems-starred-equivalents.inc
> theorems-starred.module
> theorems-std.module
> 
> pavel

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96001-970 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Forward search w/ okular (KDE).

2011-04-04 Thread Rudi Gaelzer
Reverse/Forward search works well with lyx2.0rc2 and texlive 2010.
I've only found a small glitch with Forward search.  On Tools -> Preferences -
> Output, I set the DVI/PDF command: okular --unique "file:$$o#src:$$n $$t"
Now, everytime I execute a forward search, a new okular window opens, at the 
correct position.
Removing the --unique option has no effect.

Is this the expected behaviour?
Thaks.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: lyx2.0.0beta3 vs. texlive 2010

2011-03-05 Thread Rudi Gaelzer
Just did as you suggested and everything seems to be working, so far.
Thanks Neal and José for the tips.

On Wednesday 02 March 2011 13:24:38 José Matos wrote:
> On Wednesday 02 March 2011 13:32:33 Rudi Gaelzer wrote:
> > Can you please tell me what did you do?
> > Did you first uninstall all the TeXlive 2007 packages that come with F14
> > and then force the installation of 2010?
> > Did you have to remove and reinstall LyX in the process?
> 
> After installing the repo file and updating the system lyx will work
> normally using the new system latex. There is no need to change lyx.
> 
> Eventually, just to be sure that any new package is detected by lyx, you
> can run Reconfigure and that is it. :-)

-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354
96001-970 Pelotas - RS
Fone: (53) 3275-7416
FAX:  (53) 3275-7343
Usuário de Linux registrado # 153741


Re: lyx2.0.0beta3 vs. texlive 2010

2011-03-02 Thread Rudi Gaelzer
Can you please tell me what did you do?
Did you first uninstall all the TeXlive 2007 packages that come with F14 and
then force the installation of 2010?
Did you have to remove and reinstall LyX in the process?

How do you find 2010 as compared with 2007?  I'm mainly interested in the
reverse search capabilities offered by the most recent releases.

Thank you.

On Tue, Feb 1, 2011 at 10:12 AM, Neal Becker  wrote:

> Guenter Milde wrote:
>
> > On 2011-01-31, Neal Becker wrote:
> >> On Monday 31 January 2011, Marcelo Acuña wrote:
> >>> > This is fedora 14 using texlive 2010
> >>> > package from  Jindrich Novy
> >>> > 
> >>> >
> >>> > checking for a Latex2e program...
> >>> > +checking for "latex"...  yes
> >
> >>> texlive 2010 work very well for me, with all 2.0 alphas and betas and
> 1.6.8
> >>> versions. I have debian lenny.
> >
> > Do you run a local TeXLive? Debian comes with texlive 2009 as newest
> > version.
> >
> >> Can you please tell me if you have:
> >> lrwxrwxrwx 1 root root 6 Jan 16 11:17 /usr/bin/latex -> pdftex
> >
> > Yes, this is the Debian setup. With a recent Debian/testing, it is
> >
> > lrwxrwxrwx 1 root root 6 18. Okt 11:05 /usr/bin/latex -> pdftex
> >
> >
> > Günter
>
> My texlive was corrupt.  Cleaned out and reinstalled, now it's working.
>
> One surprise.  Choosing to view my document opened up firefox.  Probably
> not
> what I wanted (usually would use okular).
>
>


-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96001-970 Pelotas - RS
BRAZIL
Phone: +55-53-275-7468
FAX: +55-53-275-7343

Registered Linux user # 153741


Immediate Apply?

2011-01-06 Thread Rudi Gaelzer
What does the "Immediate Apply" check box really do?
I can find this option in certain pop up boxes, such as the Lyx: line
configuration box, but I could find no explanation in all manuals, nor in
the discussion list.

Thanks.

-- 

Rudi Gaelzer

Department of Physics

Institute of Physics and Mathematics

Federal University of Pelotas

BRAZIL

Registered linux user # 153741


Thesis template

2010-12-23 Thread Rudi Gaelzer
Seems like there is a small bug in the thesis template.
If I try to process the template, I get the error message:
Undefined control sequence
Description:
\subtitle
   {Subtitle (if you have one)}

It seems that the Koma book class does not support the subtitle command.

-- 
Rudi Gaelzer
Registered Linux user # 153741


LyX 2.0 beta 2 on Fedora 14?

2010-12-21 Thread Rudi Gaelzer
Anyone knows when the beta 2 version will be added to the Fedora 14
repository?
Or the idea is to wait for the stable release?
Thanks.

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered Linux user # 153741


Re: Still getting errors with 2.0.0beta1.

2010-12-08 Thread Rudi Gaelzer
Hi.  Has this bug been solved in the beta 2 release?
If not, what's the ticket #, so I can track it?
Thanks.

On Fri, Dec 3, 2010 at 2:00 PM, Richard Heck  wrote:

> On 12/03/2010 08:02 AM, Rudi Gaelzer wrote:
>
>> The LyX version offered on the Fedora 14 repositories has now upgraded to
>> 2.0.0beta1.
>> When I load a 1.6x multi-document project into the beta version and try to
>> process it, I get the following error:
>>
>> Paragraph ended before \gather* was complete.
>> Missing $ inserted.
>> Missing \endgroup inserted.
>> Display math should end with $$.
>> Misplaced \cr.
>> Misplaced \noalign.
>> Misplaced \noalign.
>> Extra }, or forgotten \endgroup.
>> Missing $ inserted.
>>
>> Of course, the document processed just fine with LyX 1.6x.
>> When I backtraced the error line from the exported tex source, I found
>> that the problem was in a gather* environment that contains an aligned
>> sub-environment.  It seems that the lyx -> tex conversion is generating an
>> incorrect source code.
>> Moreover, LyX stops displaying the equations the moment a sub-environment
>> is created.  You can verify that very quickly.
>>
>> Here's the offending cell:
>>
>> \begin{gather*}
>> \frac{d\boldsymbol{p}}{dt}=p_{\perp}\frac{d}{dt}\cos\phi\vu
>> 1+p_{\perp}\frac{d}{dt}\sen\phi\vu
>> 2=\frac{q_{\alpha}B_{0}}{c}\epsilon_{ij3}\vu
>> iv_{j}=\frac{q_{\alpha}B_{0}}{c}\left(v_{2}\vu 1-v_{1}\vu 2\right),\\
>> \begin{aligned}\sen\phi p_{\perp}\frac{d\phi}{dt} &
>> =-\frac{q_{\alpha}B_{0}}{c}v_{2}=-\frac{q_{\alpha}B_{0}}{c}\frac{p_{\perp}\sen\phi}{\gamma
>> m_{\alpha}}\\
>> \cos\phi p_{\perp}\frac{d\phi}{dt} &
>> =-\frac{q_{\alpha}B_{0}}{c}v_{1}=-\frac{q_{\alpha}B_{0}}{c}\frac{p_{\perp}\cos\phi}{\gamma
>> m_{\alpha}},
>> \end{aligned}
>>
>> \end{gather*}
>>
>> Processing the tex source directly, It complained that the paragraph was
>> ended before \gather* was complete.  I just had to remove the empty line
>> before \end{gather*} and the document processed all right.
>>
>> I guess this is a bug...
>>
>>  A known bug. It has been fixed for the next release. Still, thanks for
> the report.
>
> Richard
>
>


-- 
Rudi Gaelzer
Departamento de Física
Instituto de Física e Matemática
Fundação Universidade Federal de Pelotas
Caixa Postal 354 - Campus UFPel
96001-970 Pelotas - RS
BRAZIL
Phone: +55-53-275-7468
FAX: +55-53-275-7343

Registered Linux user # 153741


Still getting errors with 2.0.0beta1.

2010-12-03 Thread Rudi Gaelzer
The LyX version offered on the Fedora 14 repositories has now upgraded to
2.0.0beta1.
When I load a 1.6x multi-document project into the beta version and try to
process it, I get the following error:

Paragraph ended before \gather* was complete.
Missing $ inserted.
Missing \endgroup inserted.
Display math should end with $$.
Misplaced \cr.
Misplaced \noalign.
Misplaced \noalign.
Extra }, or forgotten \endgroup.
Missing $ inserted.

Of course, the document processed just fine with LyX 1.6x.
When I backtraced the error line from the exported tex source, I found that
the problem was in a gather* environment that contains an aligned
sub-environment.  It seems that the lyx -> tex conversion is generating an
incorrect source code.
Moreover, LyX stops displaying the equations the moment a sub-environment is
created.  You can verify that very quickly.

Here's the offending cell:

\begin{gather*}
\frac{d\boldsymbol{p}}{dt}=p_{\perp}\frac{d}{dt}\cos\phi\vu
1+p_{\perp}\frac{d}{dt}\sen\phi\vu
2=\frac{q_{\alpha}B_{0}}{c}\epsilon_{ij3}\vu
iv_{j}=\frac{q_{\alpha}B_{0}}{c}\left(v_{2}\vu 1-v_{1}\vu 2\right),\\
\begin{aligned}\sen\phi p_{\perp}\frac{d\phi}{dt} &
=-\frac{q_{\alpha}B_{0}}{c}v_{2}=-\frac{q_{\alpha}B_{0}}{c}\frac{p_{\perp}\sen\phi}{\gamma
m_{\alpha}}\\
\cos\phi p_{\perp}\frac{d\phi}{dt} &
=-\frac{q_{\alpha}B_{0}}{c}v_{1}=-\frac{q_{\alpha}B_{0}}{c}\frac{p_{\perp}\cos\phi}{\gamma
m_{\alpha}},
\end{aligned}

\end{gather*}

Processing the tex source directly, It complained that the paragraph was
ended before \gather* was complete.  I just had to remove the empty line
before \end{gather*} and the document processed all right.

I guess this is a bug...
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered Linux user # 153741


Re: LyX 2.0x alpha5 in Fedora 14 and modules.

2010-11-19 Thread Rudi Gaelzer
When I open the master document, that tries to load the modules, the following 
window pops-up twice:
LyX: Read Error.  Error reading module theorems-ams-bytype.

I forgot to mention that the file was created by LyX 1.6x.

Thank you.

On Friday 19 November 2010 12:42:44 Julien Rioux wrote:
> On 19/11/2010 8:42 AM, Rudi Gaelzer wrote:
> > I'm asking because the alpha5 version is issuing error messages when it
> > tries to load the theorem modules.
> 
> What's the error message?

-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


LyX 2.0x alpha5 in Fedora 14 and modules.

2010-11-19 Thread Rudi Gaelzer
Hi.
So far, only the alpha5 version of LyX 2.0 has been made available for Fedora 
14.  Anyone knows if the beta1 update will be offered soon in the yum updates 
repository?
I'm asking because the alpha5 version is issuing error messages when it tries 
to load the theorem modules.
Thank you.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Forced page breaks?

2010-05-31 Thread Rudi Gaelzer
Thanks, Vincent.  Told you it would be a silly question...
Indeed it is... What happened was that some time ago I modified the 
stdmenus.inc 
file in order to incorporate read-only options: 

Item "Open Read Only...|e" "command-sequence file-open; buffer-toggle-read-only"
Item "Toggle Read Only|T" "buffer-toggle-read-only"

and have been using this file ever since...

Is there a way to include the above options without having to copy the file to 
my personal ~/.lyx/ui directory and edit said file there?
I mean something like an usermenus.inc file that is loaded after the 
system-wide 
stdmenus.inc?

Thanks again

On Monday 31 May 2010 13:11:15 you wrote:
> > This is sure to be a silly question, but I cannot find the forced page
> > breaks entries any longer.
> > They used to be at Insert -> Formatting -> Page Break/New Page.
> 
> And they still are.
> 
> What version of LyX do you use ? Did you recently update your version
> ? Maybe the user or system directories are conflicting now.
> 
> Vincent


-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Re: Change tracking and the fate of deleted text

2010-05-31 Thread Rudi Gaelzer
Julien, how do I redefine the \lyxadded and \lyxdeleted from inside the LyX 
editor?  Your suggestion seems very useful.

On Monday 31 May 2010 11:19:04 Julien Rioux wrote:
> Hi,
> It can be done in the LaTeX output by redefining the commands \lyxadded 
> and \lyxdeleted to your liking. But you are right it would be much 
> harder to implement inside the LyX editor.


-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Forced page breaks?

2010-05-31 Thread Rudi Gaelzer
This is sure to be a silly question, but I cannot find the forced page breaks 
entries any longer.
They used to be at Insert -> Formatting -> Page Break/New Page and the User 
Guide (section 3.5.5) still mentions them there, but now none of the remaining 
items at Insert-> Formatting seem to do the deed, not even the Vertical 
Space... 
entry.  Even if I choose the Custom option, the dialog box does not allow me to 
enter neither the \newpage nor the \pagebreak commands.  It seems to me that 
ERT 
is the only way to go...
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


Status of internationalization of amsthm environs. in LyX

2010-05-27 Thread Rudi Gaelzer
What's the status of the internationalization effort on the theorem 
environments 
defined by the amsthm package?
I've found the following bug which seems to be still open:
http://www.lyx.org/trac/ticket/1476?id=1476

So, what should I do if I want the captions of the theorem environs. translated 
to Portuguese in LyX?

I've also found the following reply:
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg73431.html
where the inc and module files were translated to Spanish.
Should I start from there and translate the same to Portuguese?

Thanks in advance.
-- 
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741


  1   2   >