Re: Support for xfig graphics

2022-06-22 Thread José Abílio Matos
On Wednesday, 22 June 2022 03.54.53 WEST Steve Litt wrote:
> That can't be right. Python 2 has been deprecated for years. I'm sure
> LyX gives you the choice to use Python 3.

What I mean here is that LyX can still use python 2 as the python version. In 
the autodetection stage, in lyx 2.3, it can happen that lyx picks python2 as 
the python version. Although, for example, in Fedora I carry a patch where I 
force python3, and it has always worked.

In LyX 2.4 the autodetection always tries to pick python3 first although it 
(still) supports python2 and it will use as fallback.

After LyX 2.4 the support for python 2 will be removed from the code base. The 
need to currently write code is compatible with python 2 and 3 is a burden.

-- 
José Abílio-- 
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 José Abílio Matos
On Tuesday, 21 June 2022 17.06.00 WEST Jean-Marc Lasgouttes wrote:
> Are you sure that you do not have another file names "lyx2lyx"
> somewhere? "locate" may be able to determine that.
> 
> JMarc

It is unlikely because lyx always knows the relative location of lyx2lyx.
So even if there are two lyx2lyx in path each lyx versions always use the 
right version.

-- 
José Abílio-- 
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 José Abílio Matos
On Tuesday, 21 June 2022 13.44.01 WEST Rudi Gaelzer wrote:
> 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

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.
-- 
José Abílio-- 
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 José Abílio Matos
On Tuesday, 21 June 2022 14.12.14 WEST Rudi Gaelzer wrote:
> 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.

I think that this could be a manifestation of the problem that you have.

LyX is choosing python2 as the python version and since that python2 does not 
work then the converters that use python fail.
-- 
José Abílio-- 
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 José Abílio Matos
On Monday, 20 June 2022 14.28.18 WEST Rudi Gaelzer wrote:
> 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?

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. :-)

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: The programming language of lyx class files

2022-06-17 Thread José Abílio Matos
On Friday, 17 June 2022 01.22.48 WEST tush via lyx-users wrote:
> Github markdown allows the writer to type code snippets with syntax
> highlighting.
> 
> I want to write in such a markdown document a code snippet of a class file:
> module file or layout file.
> 
> What is the most appropriate programming language that fits best LyX's class
> file syntax?

Even if you find it you define a language you still have the problem of the 
language keywords.

-- 
José Abílio-- 
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-17 Thread José Abílio Matos
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,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: beamer

2022-06-17 Thread José Abílio Matos
On Thursday, 16 June 2022 17.32.06 WEST Daniel wrote:
> Apparently one can even hack the navigation icons away on a specific
> frame if that is desired. See attachment. Inspired by
> https://tex.stackexchange.com/questions/14796/beamer-blank-black-frame.
> 
> Daniel

That is also one of the reasons why I like the metropolis theme. :-)

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Exercises at end of sections

2022-06-03 Thread José Abílio Matos
On Wednesday, 1 June 2022 05.38.06 WEST Richard Kimberly Heck wrote:
> 
> There probably is some pre-existing package you could adapt. But this
> would be relatively easy to do from scratch. My first thought would be
> as in the attached file. Is there something you need that isn't here?
> 
> Riki

FWIW I use tasks together with xsim (eXercises and Solutions IMproved). This 
allows to place together exercises and solutions in LyX and to print the 
solution where we want to (e.g. at the end in a special section/chapter).

Attached follows the module file that I use for this. I need to clean it to 
add to lyx. :-)

-- 
José Abílio#\DeclareLyXModule[xsim.sty]{Exercise sheets}
#DescriptionBegin
# Adds Exercise and Solution environments from the xsim package.
# This package allows that solutions to exercises to appear where required. You 
will need to add
# \printsolutions in TeX-code where you want the solutions to appear.
#DescriptionEnd
#
#Author: José Matos

Format 60

Requires   xsim 

AddToPreamble

\let\beamersolution\solution
\let\endbeamersolution\endsolution

% "delete" the `solution' environment:
\let\solution\relax

\usepackage{xsim}
EndPreamble

Counter exercise
PrettyFormat "Exercise ##"
End

Counter solution
PrettyFormat "Solution ##"
End

InsetLayout Flex:Question
   LyXType custom
   LatexName   exercise
   LatexType   environment
   Counter exercise
   Decoration  classic  
   MultiPartrue
   LabelString Exercise
   Requiresxsim
End

InsetLayout Flex:Solution
   LyXType custom
   LatexName   solution
   LatexType   environment
   Counter solution
   Decoration  classic  
   MultiPartrue
   LabelString Solution
   Requiresxsim
End

Style Task
   CopyStyle   Enumerate
   LatexName   tasks
   ItemTag ***
End
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx not a readable Lyx document

2022-04-15 Thread José Abílio Matos
On Saturday, 9 April 2022 18.15.31 WEST Wolfgang Engelmann via lyx-users 
wrote:
>  > however, after it and after
> 
> ./configure --with-version-suffix=lyx24n
> (I unfortunately forgot --bindir=/usr/local/bin)
> make
> make install
> 
> and running a lyx file I get again:
> 
> Warning: 609: Format not supported.
> Warning: Quitting.
> Error: Dokumentformat-Fehler
> 

What is the version you are running?

Help->About LyX

I suspect that you have different versions in your path and that the older one 
is selected.

I hope that this help.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: pdf (lua) of a lyx document

2022-02-02 Thread José Abílio Matos via lyx-users
On Wednesday, 2 February 2022 08.48.18 WET Wolfgang Engelmann via lyx-users 
wrote:
> I use lyx 2.4.0dev (Debian)
> starting lyx from a terminal, selecting a certain document and trying to
> view it by export pdflua
> leads to this in the terminal
> 
> wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ lyx
> qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 597,
> resource id: 0, major code: 20 (GetProperty), minor code: 0
> Warning: Failed to produce 1 preview snippet(s)
> /usr/include/c++/10/bits/stl_stack.h:274: void std::stack<_Tp,
> _Sequence>::pop() [with _Tp = int; _Sequence = std::__debug::deque std::allocator >]: Assertion '__builtin_expect(!this->empty(),
> true)' failed.
> Abgebrochen
> wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$
> 
> I had reported before under
>   lyx 2.4.0dev crashes
> and wonder whether it is the same issue.
> 
> What should I do?
> Go back to Lyx 2.3.x?
> Compile the 2.4 anew (in case it has changed in the meantime)?
> 
> This error does not happen with other lyx documents which I tried
> 
> Wolfgang
> 
> p.s. if I compile lyx again, should I use
> ./configure --enable-debug
> since I am not familiar with gdb?

Usually this type of discussion are more appropriate in lyx-devel mailing 
list.

With that said if you use --enable-debug use also --enable-stdlib-debug that 
it will help as well.

As usual with bug reports it helps to find, when possible, a minimal working 
example.

Regards,
-- 
José Abílio


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


Re: lyx_tmpdirs in /tmp

2022-01-07 Thread José Abílio Matos via lyx-users
On Wednesday, 5 January 2022 13.29.07 WET Wolfgang Engelmann via lyx-users 
wrote:
> Can I delete the lyx_tmpdirs in the root /tmp?
> I have the impression, that a rerun of lyx uses it, which I do not want.

Every time that LyX runs it generates a temporary directory/folder, called 
lyx_tmpdir. where the  is replaced by a random string/word.
Inside that directory it is created a new directory for each file opened.

The  part is random and changes between LyX runs. Also if all goes 
well when LyX exits it cleans/erases those directories.

The next time it runs again this process is repeated. Honestly that chance 
that between successive runs LyX reuses the same name is in practical terms 0.

So if all goes well when LyX exists the temporary directories are removed. 
What is the use case that you have?

Best regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx_tmpdirs in /tmp

2022-01-06 Thread José Abílio Matos via lyx-users
On Thursday, 6 January 2022 14.28.53 WET Wolfgang Engelmann via lyx-users 
wrote:
> This is what I get after
> mount | grep tmp:
> 
> udev on /dev type devtmpfs
> (rw,nosuid,relatime,size=1909652k,nr_inodes=477413,mode=755)
> tmpfs on /run type tmpfs
> (rw,nosuid,nodev,noexec,relatime,size=386516k,mode=755)
> tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
> tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
> tmpfs on /run/user/1000 type tmpfs
> (rw,nosuid,nodev,relatime,size=386512k,nr_inodes=96628,mode=700,uid=1000,gid
> =1000)
> 
> where does one see the erasing period/time?
> 
> Wolfgang

The issue here is that /tmp does not seem to be managed by tmpfs. :-(

FWIW my full output is similar to yours:

devtmpfs on /dev type devtmpfs 
(rw,nosuid,seclabel,size=16104168k,nr_inodes=4026042,mode=755,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)
tmpfs on /run type tmpfs 
(rw,nosuid,nodev,seclabel,size=6452820k,nr_inodes=819200,mode=755,inode64)
tmpfs on /tmp type tmpfs 
(rw,nosuid,nodev,seclabel,size=16132044k,nr_inodes=409600,inode64)
tmpfs on /run/user/1000 type tmpfs 
(rw,nosuid,nodev,relatime,seclabel,size=3226408k,nr_inodes=806602,mode=700,uid=1000,gid=1000,inode64)

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx_tmpdirs in /tmp

2022-01-06 Thread José Abílio Matos via lyx-users
On Thursday, 6 January 2022 06.29.18 WET Wolfgang Engelmann via lyx-users 
wrote:
> My problem is, that I can't run the luatex document properly. I might
> report about it if I can't manage myself.

What do you get when you run:

mount | grep tmp

in my case (Fedora 35) I see:
...
tmpfs on /tmp type tmpfs 
(rw,nosuid,nodev,seclabel,size=16132044k,nr_inodes=409600,inode64)
...

because \tmp is managed by tmpfs and thus, as Paul said, is erased on a 
regular basis.

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Installed module not found; page style not accepted

2021-09-04 Thread José Abílio Matos
On Thursday, 26 August 2021 17.47.09 WEST Rich Shepard wrote:
> A) Probably because that's where texlive-2020.200608-x86_64-2_SBo or
> texlive-extra-2020.200608-x86_64-1_SBo put it, and

Just for future reference scrpage2 is present in texlive-2020 and has been 
removed from texlive-2021.

For what is worth scrpage2 has been declared obsolete in 2015:
https://ctan.org/pkg/scrpage2?lang=en

-- 
José Abílio


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


Re: Set optional tabular argument

2021-05-17 Thread José Abílio Matos
On Monday, May 17, 2021 7:20:40 AM WEST Daniel wrote:
> Perfect, thanks. I missed that. I guess because "Table-wide settings"
> sounds as if some setting that is normally applied only per
> column/row/cell is applied table-wide. So, I had mistaken it for the
> text-alignment within the table. I am not a native speaker but maybe
> there is some more suitable term than "Table-wide" for this.
> 
> I am also wondering whether the options could be more descriptively
> labelled "Baseline at top", "Baseline centered", "Baseline at bottom".
> That is what Libre Office uses for graphics alignment.
> 
> Daniel

I had thought about this because initially I thought it to be confusing.
In this case I think that "Table-wide" describes what it is doing. The issue I 
have is that for me it is not easy to immediately distinguish that in the 
"Table settings" there are 4 sections:

* Column settings;
* Row settings;
* Cell settings;
* Table-wide settings.

The visual distinction makes it to appear as if this tab deals with Columns 
settings because it is what it shows centered in the first row.

In terms of logic probably we could send the "Table-wide settings" to its own 
major tab, together with "Borders" and "Multi-Page Table".
So the major tabs could be "Local Settings"; "Global Settings", "Borders" and 
"Multi-Page Table".

Or we could replace "Local Settings" by "Column/Row/Cell"...

It is not an easy task to find what it is the right balance here. :-)
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: beamer dual

2021-03-06 Thread José Abílio Matos
On Wednesday, March 3, 2021 11:16:38 AM WET Patrick Dupre wrote:
> Hello,
> 
> I am preparing a short presentation for a colleague. I would like to have
> the regular slides on the standard screen, and on an auxiliary screen, the
> notes/text that he could use. Or at least to have the "notes" attached to
> the slide, but not visible during the presentation.
> 
> Is it possible?
> 
> Thanks
> 
> ===
>  Patrick DUPRÉ | | email: pdu...@gmx.com
>  Laboratoire interdisciplinaire Carnot de Bourgogne
>  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
>  Tel: +33 (0)380395988
> ===

I know that I am late to the party. :-)

For presentations of beamer documents with notes I use pdfpc
https://pdfpc.github.io/

The functionalities are similar to pyimpressive.

Best regards,
-- 
José Abílio


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


Re: Koma-script Book Figure/Table numbering.

2021-02-04 Thread José Abílio Matos
On Thursday, February 4, 2021 2:51:44 PM WET Norman Dunbar wrote:
> Hi Rich,
> 
> thanks for the advice. Please find the test case attached. Hopefully.
> 
> LyxTableBug is the master, childDocument is, well, the child document.
> 
> 
> Cheers,
> Norm.

It seems that this is on purpose due to using parts.

I had to search for the solution:
https://tex.stackexchange.com/questions/179285/redefine-figure-counter-with-scrbook

In LyX you can do it, in the master document, with:

Document -> Settings -> Document Class -> Class Options -> Custom

and inserting in the Custom field: numbers=noendperiod

I hope that this helps.
-- 
José Abílio


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


Re: Flawed 2.3.6.1 upgrade

2021-01-26 Thread José Abílio Matos
On Monday, January 25, 2021 7:04:48 PM WET Rich Shepard wrote:
> GuiApplication.cpp (3126): Unable to read UI file:
> /home/rshepard/.lyx/ui/classic.ui

Hi Rich, do you still have the original file that gave you problems?

If so could you sent it to me privately to find why this is failing with 
python2?

FWIW the code should work with python2 and python3.

Best regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX on Apple Silicon (cont.)

2021-01-16 Thread José Abílio Matos
On Saturday, January 16, 2021 6:56:33 PM WET Richard Kimberly Heck wrote:
> I honestly don't even know what Apple Silicon is

That refers to the new ARM processors architecture from Apple as opposed to 
the previous processors that are Intel based.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.4.0 Alpha 1

2021-01-16 Thread José Abílio Matos
On Saturday, January 16, 2021 1:49:23 PM WET Baris Erkus wrote:
> One thing I observed, maybe nothing big, the screen fonts are quite large
> compared to 2.3.x, even if the screen fonts zoom ratio is %225 in both
> versions. See attached (above is 2.4, below is 2.3).

Are both versions using the same font family? I am not saying that this is the 
cause, I am just trying to reduce the obvious candidates.

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-14 Thread José Abílio Matos
On Monday, December 14, 2020 4:41:11 AM WET Murat Yildizoglu wrote:
> Hi José,
> I have tried to do it, but, if I understand correctly how this works, I need
> to add a new page under Tips. Unfortunately the suggested password LyX does
> not seem to be enough for editing the page list. Probably, I am doing
> something stupid. I have not used a wiki for many years, and lost the logic
> of the system.

Thank you for doing that. :-)
I see that Riki already fixed the issue you had.

Best regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Markdown to Lyx

2020-12-13 Thread José Abílio Matos
On Friday, December 11, 2020 8:50:36 AM WET Dr Eberhard W Lisse wrote:
> Murat,
> 
> also look for pandoc’s template (-t latex) which you can modify. You really
> want Koma-Script instead of the standard (ie scrartcl vs article), and you
> also want LuaLaTeX (if you are not using it already.
> 
> Then google
> 
> https://www.google.com/search?q=pandoc+latex+template
> 
> I took the example from Wandmalfarbe and modified it heavily for my use two
> years ago and had to use a little Perl because tex2lyx produced some ERT,
> but tex2lyx has been revised a number of times by then, and, as I wrote
> before my situation was very specific.
> 
> My latest hobby, by the way, is to re-engineer hardcopy forms in LyX and
> then use Perl’s template toolkit to have my practice software fill in my
> patients’ details :-)-O.
> 
> Even figured out a way to generate a realistically looking date stamp  which
> varies by location and rotation randomly a little and put it into the
> preamble so no ERT when it appears in the PDF. But I had to have someone
> explain my own LaTeX code to me :-)-O
> 
> greetings, el

Hi Eberhard and Murat,
  I always find these threads very enlightening. :-)

If you find the time and motivation it would be nice to add these nice 
snippets to the LyX wiki so they do not get forget here.

Best regards, 
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: no accents with dead keys (SOLVED)

2020-12-13 Thread José Abílio Matos
On Wednesday, November 11, 2020 4:11:18 PM WET jorge hernando wrote:
> Hi Jose
> 
>  I searched old e-mails and I believe I can confirm it's a bug in qt5 that
> ts triggered by un unknown mechanism. The previous fedora version I had
> (the 29) had lyx 2.3.3 and qt5.11 and it worked perfectly. When I installed
> fedora 32 the deadkeys were effectively dead. However, with featherpad (a
> qt application) I had the same problem while with nedit (non a qt appl.)
> had all the dead keys in order. I also think that not all the installations
> have the same problem because if it all had it, there probably were a
> massive outcry: almost every language, except english, has accents.
> 
> Lastly, I have not the foggiest notion of what Input Methods are; please
> tell me if there is something I can do.
> 
> Regards
> 
> Jorge

Sorry for bringing this so late.

What I meant are "keyboard input methods", they are used for languages like 
Chinese or Japanese where the keyboard does not hold all the characters.

I am asking if it is a question of configuration.
In my case I use kde, calling System Settings->Hardware->Input devices-
>Keyboard.

There I can choose several items, like the keyboard type, variant (with and 
without dead keys) and other more advance options.

As I have told I remember to had problems like that but it was a long time 
ago.

Best regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Xubuntu 20.04: Qt Library

2020-12-12 Thread José Abílio Matos
On Friday, December 11, 2020 5:32:44 PM WET Richard Kimberly Heck wrote:
> I'm a little puzzled why you would need that. LyX uses Qt, yes, but
> packages like that typically involve some kind of communication between
> Qt and Gtk. I don't know why LyX would need that.

I would expect for those packages to be packages related with theme-ing of qt 
applications when running in a gtk environment. So since XFCE uses gtk that 
could be the reason.

So those packages are only relevant if you want the look of the different 
toolkit packages to be the same.

But lyx does not connects directly to them, the relation is indirect, lyx uses 
qt that can talk to the gtk environment to get the right theme.

So when building the binaries lyx will never use those packages. They are used 
just at run time.

So no, those packages are not needed to compile lyx.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: beamer notes support?

2020-12-02 Thread José Abílio Matos
On Wednesday, December 2, 2020 5:54:30 PM WET Neal Becker wrote:
> Thanks!  I see now that there is Insert > Custom inset > Beamer Note, and
> there is also Noteitem layout.  Seems odd that these two options are in
> entirely different menus.

Because they correspond to different roles:

Custom inset > Beamer Note => LaTeX: \note{...}

"Note item" layout => LaTeX: \note[item]{...}

That corresponds to two different usages, and after using both I like the 
difference. Conceptually, at least to me, both concepts make sense.

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: No first line in double enumeration

2020-11-28 Thread José Abílio Matos
On Thursday, November 26, 2020 4:37:08 PM WET Richard Kimberly Heck wrote:
> OK, I see the problem. Two solutions:
> 
> The simplest is to add an empty ERT box to the first item. This will prevent
> LyX from collapsing the empty element and adds nothing to the output.

Why not to add a protected space? Ctrl+Space.

It will avoid for the first paragraph to collapse.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: no accents with dead keys (SOLVED)

2020-11-11 Thread José Abílio Matos
Hi Jorge,
  let us keep this discussion in the mailing list to help others that could 
have the same problem. :-)

On Wednesday, November 11, 2020 1:20:37 PM WET jorge hernando wrote:
> I use mate as a desktop.

I use mainly kde, sometimes test in gnome, and although I have not mate 
installed but I can install it to see if I can reproduce the problem.

> This is the first time I had problems with lyx, and I'm using it from the
> very beginning, I think more than twenty years. The previous Fedora I had,
> was  29, I don't remember the qt version but I remember that it worked
> flawlessly. I'm sure that the bug is in the qt5 library, but I don't know
> how to discover how it is triggered. Any suggestions?

One of the first things to test is to see if this is a problem of lyx or if 
you see it in other qt5 based applications. Simple examples here are kate and 
kwrite but any other application based on qt5 is OK to test. Could you try 
please and see if the problem also happens there?

My first guess would be that this is related with Input Methods:
https://fedoraproject.org/wiki/I18N/InputMethods#Qt_IM_modules 

but only testing can we know. :-)

> Regards
> 
> Jorge


-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: no accents with dead keys (SOLVED)

2020-11-11 Thread José Abílio Matos
On Tuesday, November 10, 2020 7:03:42 PM WET jorge hernando wrote:
> Hi
> Some time ago I begun a thread about dead keys not working in lyx that ended
> up with a quite cumbersome and imperfect solution (it didn't work in
> formulas and was an unmitigated problem in tables); i.e. to write in a non
> qt-editor and then paste the text. However, a couple of days ago, Flavio
> Eler de Melo told me in an e-mail the solution. He has the pc under Ubuntu
> 18.04 which provides both Qt5 and Qt4. He removed qt5 and compiled lyx
> (even the latest 2.4.0) with Qt4 and the dead keys worked.
> 
> I'm in fedora 32 and didn't want anything drastic so I downloaded qt4lib and
> the lyx sources and run configure with the line
> 
> ./configure --with-qt-dir=/usr/share/qt4 --with-extra-lib=/usr/lib64
> --with-version-suffix
> 
> and ended up with the executable lyx-2.3.5.2  in /usr/local/bin which runs
> with Qt4 (the dead keys work perfectly) which coexists with the executable
> (just in case) lyx which runs with Qt5.
> 
> Jorge

Hi Jorge,
  my keyboard has dead keys and they work flawlessly in Fedora. I remember the 
problems you describe in LyX but those were more than 15 years ago.

What is the desktop environment that you are using? I am one of the 
maintainers of LyX in Fedora and I am interested in understanding your problem 
so that it can be fixed.

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: | >>

2020-11-09 Thread José Abílio Matos
On Monday, November 9, 2020 6:07:58 PM WET Patrick Dupre wrote:
> Thank for the feedback,
> 
> This I understand. The problem is that I have to type all my formula under
> latex then. This is annoying for large formulas.
> 
> I would like to by able to keep using the lyx tool.

In Math manual: Help-> Math (Chapter 5).

In this case you could do:

Insert -> Math -> Inline Formula

in the math bar: Insert delimiters

remove the "Keep match" option, select the bar on left and rangle on the 
right.

Does this helps?
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: | >>

2020-11-09 Thread José Abílio Matos
On Monday, November 9, 2020 5:15:06 PM WET Patrick Dupre wrote:
> Hello,
> 
> How can I generate the following sequence with lyx?
> $\left|A\right\rangle\rangle $
> 
> Thank.

If I understand you correctly one way would be to copy that sequence text to 
lyx, select it and press Ctr+M (if you use the cua bindings).

Is that what you are looking to?

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX shortcuts

2020-11-07 Thread José Abílio Matos
On Saturday, November 7, 2020 9:25:33 AM WET Wolfgang Engelmann wrote:
> Joel,
> what I am after, described with two examples:
> 1. > Insert > Cross Reference
> this used to show - as far as I remember- in the old golden times -
> ctr r at the right. In my present LyX there is none (LyX Version 2.3.5.2
> (Thursday, June 25, 2020))
> 2. Suppose I am translating text from German into English. The German
> figure has in the short title as well as in the legend blue underlined
> text. To get rid of it after the translation, I do
> ctr a in the legend > which selects the text.
> A right mouse click > Language > English UK
> Now I have to do the same with the short title, since the change in
> language does not work for the short title, when I do it in the legend.
> 
> I don't mind to do it for a few legends, but if you have hundred of
> them, it would be nice to get in the selection the short cut.
> I just wonder, whether I haven't found the right way of using it; as
> said already, I am quite sure I had this feature before.
> 
> Wolfgang

I think that you are referring to something that it used to be in
"Edit->Text Style".

IIRC there was an option called "Apply previous change..." or something like 
it. I always found it confusing because it did not work for me if I wanted to 
apply it to logical/markup text styles like Code, Noun, ...


Interestingly enough the feature that you mention seems to be present in the 
development version (2.4) in "Edit->Text Properties->Apply Last Settings". In 
2,4 the logical/markup text styles are/will be in a different entry
"Entry->Custom Text Styles".

If my search-fu is correct this should be
https://www.lyx.org/trac/ticket/11427 

I hope that this helps,
-- 
José Abílio


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


Re: Preset LaTeX parameters/arguments

2020-11-03 Thread José Abílio Matos
On Tuesday, November 3, 2020 12:09:26 PM WET Daniel wrote:
> As my self answer indicates, it was actually a LyX specific question, I
> think.
> 
> Daniel

Hi Daniel,
  I think that developers mailing list would have been a better target for 
this question. In any case you answered it yourself. :-)

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX acting differently between computers

2020-10-30 Thread José Abílio Matos
On Friday, October 30, 2020 6:55:57 PM WET Eberhard W Lisse wrote:
> And I am not criticizing one bit the efforts of the LyX trying to make this
> work on Windows.
> 
> el

I did *not* read it that way either. :-)
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Testing Release of 2.4.0 Development Branch

2020-10-30 Thread José Abílio Matos
On Thursday, October 29, 2020 10:09:24 PM WET Richard Kimberly Heck wrote:
> Both source code and binaries for Windows and OSX can be found here:
> 
> http://ftp.lyx.org/ftp/pub/lyx/devel/lyx-2.4/
> 
> Binaries for various Linux distros may or may not be available from
> their associated repositories. (But, if you are on Linux, you should not
> have too much trouble compiling the source. If you need help, just ask.)

BTW if you are using Fedora or Red Hat Enterprise Linux/CentOS I created a 
copr repository:

https://copr.fedorainfracloud.org/coprs/jamatos/lyx-devel/ 

There is just one package in that repository: lyx-devel. The package is 
parallel installable with the stable version and it does not change, neither 
uses any of the stable settings. That means that it is safe to use and 
uninstall that it will not mess with the current stable 2.3.5.2.

Beware that if you save a document with lyx-devel the stable version will not 
be able to read it (yet). On the other hand you can have a look of what is 
coming next in LyX without risking any work and helping to stabilize the next 
version.

> We will greatly appreciate any reports on how well these packages work!
> You can post comments either to lyx-users or to lyx-devel.
> 
> Riki

This applies as well, all feedback is welcome either here or on the lyx-devel 
mailing list.

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fwd: Re: no modules availables

2020-08-15 Thread José Abílio Matos
On Saturday, 15 August 2020 15.26.27 WEST Jose Ramom Flores das Seixas wrote:
> You got it right, as I had several old modules from Editorium of type:
> 
> Non-ISO extended-ASCII text, with CRLF line terminators
> 
> I have converted them to
> 
>  UTF-8 Unicode text
> 
> and now configure.py recognizes all the modules.
> 
> On the other hand, executing  Reconfigure inside LyX no longer gives an
> error message.

Thank you for reporting this problem.

For reference this is another manifestation of
https://www.lyx.org/trac/ticket/11736

In this bug we fixed the corresponding issue with layout files.

I have committed a fix for this issue in the development branch (to be lyx 
2.4.0) and soon it will also committed to the stable branch (for 2.3.6).

Regards,
-- 
José Abílio


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


Re: Fwd: Re: no modules availables

2020-08-15 Thread José Abílio Matos
On Saturday, 15 August 2020 16.44.37 WEST Richard Kimberly Heck wrote:
> Do you think that is worth doing?

If it can be done easily then why not? :-)
Basically that and people asking for it. :-)

The configure code has annoyed me for a long time and at the next development 
cycle I would like to refactor it so that there is specific platform code. 
Then flatpack code could go there.

> It's too bad there's no consistent
> translation from command names to flatpack commands.

The solution would be to create an associative array with the program name and 
the url (or whatever it is called) name. That would be an static table.

We could also go the next stage and use a dynamic table built asking flatpack 
what are the packages available.

> Riki

-- 
José Abílio


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


Re: Fwd: Re: no modules availables

2020-08-15 Thread José Abílio Matos
On Saturday, 15 August 2020 15.26.27 WEST Jose Ramom Flores das Seixas wrote:
> The problem with Inkscape was that I had installed it as a flatpak package.
> I've removed it and installed the deb package and now all seem OK.
> 
> Cheers
> 
> Ramom

Yes, that is the problem. :-)

The issue is that to call inkscape from the command line the right way would 
be:

flatpack run org.inkscape.Inkscape

while we simply test

inkscape


FWIW the same happens for other flatpack packages. At moment we do not test 
for flatpacks.

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: no modules availables

2020-08-15 Thread José Abílio Matos
On Saturday, 15 August 2020 10.55.06 WEST Wolfgang Engelmann wrote:
> I am getting a long output with mostly yes, but also no-answers, e.g.
>   checking for package garamondx [garamondx]... no
> +checking for font garamondx-fonts [zgmr8r]... no
> or
> +checking for document class aapaper [aa]... no
> +checking for document class foils [foils]... no
> or
> +checking for document class scrlettr [scrlettr]... no
> 
> (not only those, just some examples)
> 
> Should there be no 'no's' in the output of the command?

Yes, this is a report of what was, or _not_, found in your computer.

You can see some of that information in "Help->LaTeX Configuration".

> > If you try to run that command in any other directory lyx will create
> > all the files and directories present in the user directory. 
> 
> I am not sure what that means: Would it produce the no-outputs??
> Wolfgang
> p.s. I am using Debian bullseye and
>   LyX Version 2.3.5.2
> (Thursday, June 25, 2020)
> Library directory: /usr/share/lyx/
> User directory: ~/.lyx/
> Qt Version (run-time): 5.14.2
> Qt Version (compile-time): 5.14.2

You can see the full report in ~/.lyx/configure.log
When the configure is run we only output the INFO lines to the console, the 
configure.log is more complete.

> Thanks, José
> 
> Wolfgang

Do you still have problems running lyx?

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: no modules availables

2020-08-15 Thread José Abílio Matos
On Saturday, 15 August 2020 08.36.32 WEST Wolfgang Engelmann wrote:
> I have followed the discussion and proposals on "no modules available"
> In my case I get:
> 
>   python /usr/share/lyx/configure.py
> Traceback (most recent call last):
>File "/usr/share/lyx/configure.py", line 23, in 
>  filemode = 'w')
>File "/usr/lib/python2.7/logging/__init__.py", line 1554, in basicConfig
>  hdlr = FileHandler(filename, mode)
>File "/usr/lib/python2.7/logging/__init__.py", line 920, in __init__
>  StreamHandler.__init__(self, self._open())
>File "/usr/lib/python2.7/logging/__init__.py", line 950, in _open
>  stream = open(self.baseFilename, self.mode)
> IOError: [Errno 13] Permission denied: '/usr/share/lyx/configure.log'
> 
> wolfgang@Fuji:/usr/share/lyx$ lyx
> Warning: Failed to produce 1 preview snippet(s)
> 
> is this, what one would expect if everything is ok?
> 
> Wolfgang

The problem here was that you tried to run the command in the /usr/share/lyx/ 
directory where you do not have permissions to write (and that is the intent).

To reproduce what lyx is doing go instead to your user directory:

$ cd ~/.lyx
$ python /usr/share/lyx/configure.py

That will reproduce the same call as lyx does.

If you try to run that command in any other directory lyx will create all the 
files and directories present in the user directory. :-)

Tell us the result.

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: no modules availables

2020-08-14 Thread José Abílio Matos
On Friday, 14 August 2020 16.28.22 WEST Jose Ramom Flores das Seixas wrote:
> Hi:
> 
> I take a long time without using LyX, but my package manager has been
> updating lyx when new versions come out. Nowadays, I have installed version
> 2.3.5.2 (OS: Ubuntu 18.04).
> 
> Today I tried to edit a file, with lyxformat 544, but LyX tells me a module
> is missing. Looking at the module dialogue I found that no module is
> available.
> 
> I've checked that the standard module files are in /usr/share/lyx/layouts,
> and besides them I have some other modules in ~/.lyx/layouts.
> 
> When I run LyX from a terminal I can notice the following error:
> 
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 395:
> invalid start byte support/Systemcall.cpp (276): Systemcall: 'python -tt
> "/usr/share/lyx/configure.py" --binary-dir="/usr/bin/"' finished with exit
> code 1
> 
>  LyX: Done!

From experience this means that you have a old layout file or module that have 
an encoding that is not utf-8. In your case I assume that the culprit is 
either in latin1 or latin9 (the difference between those is the presence/
absence of the euro sign).

Also I thought that we had fixed all the remainder errors like this in 2.3.5.2

So my suggestion is to go to your personal lyx directory and check the 
encoding of file. By default in linux the location of the personal directory 
is ~/.lyx. You can see this in LyX using the menu: Help->About LyX->Version 
and see the User dir entry there.

Using the shell in my case I have:

$ cd ~/.lyx
$ file bind/*
bind/user.bind: ASCII text

My suggestion is to check the layouts directory that could be the likely 
source of the problem:

$ file layouts/*


What happens if from the command line you run directly:

$ python /usr/share/lyx/configure.py

That will tells where does the code fails and it will be easier to diagnose 
the issue.

> Finally, when executing Reconfigure, an error dialog appears with the
> following message:
> 
> The system reconfiguration has failed.
> 
> Default textclass is used but LyX may
> 
> not be able to work properly.
> 
> Please reconfigure again if needed.
> 
> 
> 
> I've run Reconfigure several times, but the modules still don't appear. Any
> leads on what's not going well?
> 
> 
> 
> Cheers
> 
> Ramom

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Can't upgrade LyX on Focal Fossa

2020-07-23 Thread José Abílio Matos
On Wednesday, 22 July 2020 19.23.10 WEST Jean-Marc Lasgouttes wrote:
> Liviu, I would advise to configure with --enable-qt5 (will be the defalt
> in 2.4.0) for recent versions. It almost works with 16.04 (actually it
> works but outputs annoying messages on console) and actually works with
> later versions, AFAIK.
> 
> JMarc

Taking my Fedora hat here :-) I have changed to qt5 with lyx 2.3 and it 
worked.

The most demanding part, in Fedora's case, was that the development 
dependencies were more refined in qt5 packages than with qt4.

What I mean is that with qt4 it was enough to require qt4-devel for building 
while in qt5 it does not exists this umbrella package and instead we have to 
require finer development packages.

BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5X11Extras)

Regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Lyx icon?

2020-07-02 Thread José Abílio Matos
On Monday, 22 June 2020 14.10.04 WEST Jean-Marc Lasgouttes wrote:
> Could it be this bug?
> https://www.lyx.org/trac/ticket/11847
> 
> I posted a bug there, but I am not able to test it.
> 
> JMarc

I rebuilt lyx-2.3.5.2 with just this patch applied.

https://copr.fedorainfracloud.org/coprs/jamatos/lyx-next/

TLDR;
dnf copr enable jamatos/lyx-next 
dnf upgrade lyx

If this works I will update the Fedora packages.
-- 
José Abílio


-- 
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 José Abílio Matos
On Friday, 5 June 2020 12.45.46 WEST Rudi Gaelzer wrote:
> Wow! José, did you just invented time travel?

I would be glad to take the credit for that but in this case all the credit 
goes to Riki. :-D

I have studied Cosmology while an undergraduate, De Sitter–
Schwarzschild and Kerr metrics, etc. But I did not got to the time travel 
part of the course. :-)

-- 
José Abílio
-- 
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 José Abílio Matos
On Thursday, 4 June 2020 14.52.26 WEST Rudi Gaelzer wrote:
> 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...

Oi Rudi, :-)

  lyx-2.3.5 is on updates testing:
https://bodhi.fedoraproject.org/updates/FEDORA-2020-684cee3845[1] 

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


[1] https://bodhi.fedoraproject.org/updates/FEDORA-2020-684cee3845
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Brazilian Portuguese

2020-04-01 Thread José Abílio Matos
On Wednesday, 1 April 2020 15.15.37 WEST Jean-Marc 
Lasgouttes wrote:
> It is to compensate for the expensive double "it" 
> 
> JMarc

You got it. :-)
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Brazilian Portuguese

2020-04-01 Thread José Abílio Matos
On Wednesday, 1 April 2020 15.24.08 WEST Jürgen 
Spitzmüller wrote:
> I though it is an 8.3 thing (which is of course in itself a 
"historical
> accident").

Yes, just like the people that I met that still use latex 2.09 
features... really... argh... :-)

-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Brazilian Portuguese

2020-04-01 Thread José Abílio Matos
On Wednesday, 1 April 2020 11.12.16 WEST Steve Hnizdur wrote:
> Hi
> 
> Solved. Needed texlive-lang-portuguese. Thought I had it but apparently not!
> 
> Thanks for your help.

That is good to know.

In Fedora that is provided in texlive-babel-portuges (the absence of the u in 
the 
name is an historical accident and it has always confused me :-) since it it is 
there in 
"português").

#alonetogether
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Brazilian Portuguese

2020-04-01 Thread José Abílio Matos
On Wednesday, 1 April 2020 09.21.39 WEST Steve Hnizdur wrote:
> Hi
> 
> Attached is a MWE.
> 
> Error is:
> 
> "! Package babel Error: You haven't defined the language brazil yet.
> 
> See the babel package documentation for explanation.
> Type  H   for immediate help.
>   ...
> 
> l.12 \selectlanguage{brazil}"
> 
> heers

That works for me flawlessly. :-)

What is your Operating System and latex distribution?

For me, in linux and texlive, the support for Brazilian Portuguese is in babel.

$ ll /usr/share/texlive/texmf-dist/tex/generic/babel/locale/pt/ 

-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Brazilian Portuguese

2020-04-01 Thread José Abílio Matos
On Wednesday, 1 April 2020 08.55.06 WEST Steve Hnizdur wrote:
> Hi
> 
> I need to included some Brazilian Portuguese in an English document.
> When I do this through standard Lyx methods, Lyx automatically adds the
> option "brazil" to the document class in the preamble. Unfortunately
> this stops the document compiling to a PDF with an error of Unknown option.
> 
> The same error occurs if the whole document is set in Brazilian Portuguese.
> 
> Any way round this other than editing the tex file or using another
> language?
> 
> Cheers.

It seems difficult to understand the cause without further information:

What document class are you using?
What is the precise error message you are getting?

Regards, :-)
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Enumerate in Beamer

2019-05-23 Thread José Abílio Matos
On Thursday, 23 May 2019 12.20.41 WEST Dr Eberhard Lisse wrote:
> Is there a way of doing this in Beamer?  With as little ERT as possible
> of course
> 
> el

Have you seen
https://wiki.lyx.org/LyX/Numbering or https://wiki.lyx.org/Tips/Enumitem

They show how to do what you intend.

Regards,
-- 
José Abílio




Re: serious bug (fedora issue?)

2018-12-29 Thread José Abílio Matos
On Saturday, 29 December 2018 16.19.06 WET Jean-Marc Lasgouttes wrote:
> Le 07/11/2018 à 14:35, Patrick Dupre a écrit :
> > Hello,
> > 
> > There is a serious bug with the version 2.3.1 under fedora 28
> > When I run the spellchecker, I got the following crash.
> 
> Is it possible with fedora to get the debug information, so that you can
> give us a proper becktrace? José, are you reading us?

Yes. Using gdb. :-)

The instructions are more or less the following from the command line:

$ gdb /usr/bin/lyx
...
(gdb) run

That is, after you get the gdb prompt (gdb) enter run

That will get lyx running.

After lyx crashes you will get back to the gdb prompt additionally with 
further information, like:

Missing separate debuginfos, use: dnf debuginfo-install OpenEXR-
libs-2.2.0-15.fc29.x86_64 ...

That part is specific to Fedora it tells how to install the debuginfo 
packages. As root run the command described above:

# dnf debuginfo-install OpenEXR-libs-2.2.0-15.fc29.x86_64 ...

Repeat again the same procedure, starting by entering run in the gdb prompt 
and when lyx crashes in the gdb backtrace enter bt (abbreviation for 
backtrace).

That will give the full backtrace together with the debug information.

> > Then I am stuck if I want to recover. It crashes immediately.
> > If I start from the previous version, again the spellchecker will crash at
> > the same place.
> > Changing the name may help, bit again a crash appears later in the
> > document.
> > 
> > Unfortunately, I cannot make the document public.
> 
> Is it enough to obfuscate it with "buffer-anonymize"?
> 
> The spellchecker will not like it, though :)

As far as I understand the problem is not if there are typos or not. :-)

> JMarc

-- 
José Abílio




Re: serious bug

2018-12-28 Thread José Abílio Matos
On Tuesday, 25 December 2018 18.12.22 WET Scott Kostyshak wrote:
> Thanks for the reply, Patrick. Let us know once you upgrade.
> 
> Scott

Patrick has upgraded with no change, the same crashes. :-(

-- 
José Abílio




Re: crash when spell checking

2018-12-05 Thread José Abílio Matos
On Tuesday, 4 December 2018 07.10.53 WET Patrick Dupre wrote:
> Hello,
> 
> I do not understand why lyx crashes when I run the spell checker.
> Then it crashes every time that I try to reload it!!!
> It is a BEARMER document.
> Unfortunately, it is not a document that I can broadcast, and I am in
> rush.
> 
> fedora 28,

Hi Patrick,
have you been able to fix this issue?

Regards,
-- 
José Abílio




Re: Bibliographic Slop-Over

2018-10-07 Thread José Abílio Matos
On Sunday, 7 October 2018 02.48.38 WEST Daniel Kian Mc Kiernan (the best 
Daniel of the bunch) wrote:
> Odd.  We are each running distributions of Linux (Fedora in my case),
> so the apps should be virtually identical.

What version of Fedora are you using?

I am running Fedora 29 (in development) and I do not have any problem with the 
bad_bib.lyx. I send the resulting pdf attached.

The difference between Fedora 27 or 28 and Fedora 29 is that the texlive 
included is newer.

> I'll worry about this less then, as it probably won't happen when the
> publisher processes my .tex and .bib files.

You are right here. Or if they have problems they will fix them.

> Thank you for your effort!

Regards,
-- 
José Abílio

bad_bib.pdf
Description: Adobe PDF document


Re: [ANNOUNCE] LyX 2.3.1 Released

2018-09-16 Thread José Abílio Matos
On Sunday, 16 September 2018 16.40.46 WEST Richard Kimberly Heck wrote:
> We are proud to announce the release of LyX 2.3.1. This is the first
> maintenance release in the 2.3.x series.
> 
> You can download LyX 2.3.1 from http://www.lyx.org/Download/.

In order to build to Fedora I tried to download the xz file and I get:

"The requested URL /pub/lyx/stable/2.3.x/lyx-2.3.1.tar.xz was not found on 
this server."

That happens because of the -2 suffix. I suggest to rename the files (the same 
applies to .tar.gz and .sig files).
-- 
José Abílio




Re: Two column Koma script book > end of chapter appearance

2018-08-08 Thread José Abílio Matos
On Wednesday, 8 August 2018 10.20.08 WEST Wolfgang Engelmann wrote:
> Am 08.08.2018 um 11:07 schrieb Baris Erkus:
> > Sent from Mail  for
> > Windows 10
> > 
> > *From: *Wolfgang Engelmann 
> > *Sent: *Wednesday, August 8, 2018 11:39 AM
> > *To: *lyx-users@lists.lyx.org 
> > *Subject: *Two column Koma script book > end of chapter appearance
> > 
> > I would like in a two column Koma script book the end of a chapter to
> > appear in such a way:
> > 
> > ------
> > 
> > ------
> > 
> > ------
> > 
> > ------
> > 
> > ------
> 
> Neither vfill nor vertical space settings worked.
> Wolfgang

How about (in the preamble):
\usepackage{flushend}

I got it from:
https://tex.stackexchange.com/questions/5815/how-to-balance-last-page-of-two-column-layout

-- 
José Abílio




Re: LyX & article style?

2018-04-06 Thread José Abílio Matos
On Friday, 6 April 2018 13.57.47 WEST Anders Ekberg wrote:
> \date{} in the LaTeX Preamble (Document > Settings)

Or equivalently there is a check box on Document->Settings-
>Document class
that says:
Suppress default date on front page

-- 
José Abílio


Re: coding of text

2018-03-22 Thread José Abílio Matos
On Wednesday, 21 March 2018 19.17.12 WET Wolfgang 
Engelmann wrote:
> Thanks again, Paul, it was us-ascii coded and
> iconv -f us-ascii -t utf-8 original-us-ascii.txt > converted-
utf8.txt
> worked fine.
> Wolfgang

If the encoding was us-ascii there is no need to to a conversion 
since ascii is a subset of utf-8.
-- 
José Abílio


Re: 2.3.0 installer test on Windows 10

2018-03-01 Thread José Abílio Matos
On Wednesday, 28 February 2018 17.25.43 WET Eric Barkan wrote:
> Jose: I personally don't require any Babel packages; this just came up
> during testing.  So no need to change the spec file, at least not for me.
> 
> Thanks!
> 
> Eric Barkan

The underlying issue is what is the adequate set of latex packages that the lyx 
package should 
require on Fedora.

A safe bet is to require all the texlive packages. :-D
Surely that is overkill, so we need to make a compromise.

At each moment we need to establish some kind of threshold. And to be able to 
compile the 
User's Guide seems reasonable but I am open to other suggestions.

We had a similar problem reported before
https://bugzilla.redhat.com/show_bug.cgi?id=1270566

-- 
José Abílio


Re: 2.3.0 installer test on Windows 10

2018-02-28 Thread José Abílio Matos
On Wednesday, 28 February 2018 00.46.49 WET Eric Barkan wrote:
> Am I missing some package from Texlive?

Probably you are missing the babel packages:

You can install them as texlive-babel-spanish (or what is equivalent tex-
babel-spanish).

Probably we could add the tex-babel* as either a requirement or suggestion 
in the Fedora spec file. The issue and is that I would have to specify each on 
individually.

Regards,
-- 
José Abílio


Re: Small poll - download speed of LyX installers

2018-02-16 Thread José Abílio Matos
On Friday, 16 February 2018 16.20.53 WET Pavel Sanda wrote:
> If you have one minute of spare time could you download this file
> ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.3/lyx-2.3.0rc2/LyX-2.3.0rc2+qt5-x86_64
> -cocoa.dmg and report:
> 
> 1. time to download (/ download speed)
> 2. country (and/or domain) where you download from
> 3. whether you download from home/academic network/large company...
> (you don't have to report more details than it feels comfortable...)

Hi Pavel,
I get from the main ftp site:

from home:4.26MB/sin 31s
from university network:  40.8MB/sin 4.4s

I can test other sites but for this test this should be more than enough. :-)

Regards,
-- 
José Abílio


Re: LyX-to-LyX pasting from "English" to "English (USA)" annoyances

2018-01-22 Thread José Abílio Matos
On Saturday, 20 January 2018 22.39.46 WET Scott Kostyshak wrote:
> Does anyone else run into this annoyance, e.g., with other forms of
> English, French, German, etc? If not, then I don't think we should
> change anything.

I do with the different variants of English, sometimes I use the UK variant 
mainly because of 
the spelling (it is more natural to me to use colour than color) and I incur in 
the same 
problems you described.

It is not really a big problem more like a small annoyance so most of the time 
when I have 
this problems I reset the language of the affected test.

The context menu shows the option to change the language of the selection if 
there are 
more than two languages in the document. I use its absence as an indicator that 
all those 
issues are fixed.

So you are not alone in your pain. :-)
-- 
José Abílio


Re: LyX native format stuck in the middle

2017-08-11 Thread José Abílio Matos
On Monday, 31 July 2017 18.30.31 WEST Steve Litt wrote:
> I know what I'm asking for is monsterously difficult, and I know I
> certainly don't have the technical chops to do it. But when it gets
> done, LyX will be a brand new world,  finally living up to its promise
> of write once, deploy everywhere.
> 
> Thanks,
> 
> SteveT

The main technical problems of this enterprise are the math insets. Should 
they also be converted to an xml like format?

Regards,
-- 
José Abílio


Re: lyx to lyx on the Mac command line

2017-08-09 Thread José Abílio Matos
On Wednesday, 9 August 2017 09.56.31 WEST Dr Eberhard Lisse wrote:
> Jose,
> 
> thanks, but still no error checking :-)-O
> 
> lyx2lyx is a python script, so I am wondering whether there is not
> perhaps a way of doing this inside the script, perhaps with something
> like --upgrade-in-place (so it's not used by accident) and do this
> inside the script?

That can be done. The option could be -i or --in-place for compatibility with 
sed, perl and 
company.

Honestly now it is not be best moment, since we are stabilizing the release for 
2.3 to be out.

I have added this task for my 2.4 to do list. If we can test the result this 
could be possibly be 
back-ported to 2.3.

> Don't know python myself, unfortunately :-)-O
> 
> el

Regards,
-- 
José Abílio


Re: lyx to lyx on the Mac command line

2017-08-08 Thread José Abílio Matos
On Tuesday, 8 August 2017 17.24.30 WEST Dr Eberhard Lisse wrote:
> José
> 
> thank you, but it lyx2lyx does not do what I need.
> 
>   lyx2lyx file.lyx -o file.lyx
> 
> clobbers file.lyx
> 
> Something like
> 
>   PID=$$
>   cp file.lyx file.$PID.lyx
>   lyx2lyx file.$PID.lyx file.lyx
> 
> doesn't fit on the command line so needs refinement as a bash script to
> take arguments and do further error checking...
> 
> not what would call 'one the command line'
> 
> 
> el

Using bash in one line we have (backup file.lyx -> file.old.lyx):

for lfile in $(find . -name '*lyx' -print); do ofile=${lfile%%.lyx}.old.lyx; 
lyx2lyx < $ofile -o $lfile; 
done

:-)
-- 
José Abílio


Re: lyx to lyx on the Mac command line

2017-08-08 Thread José Abílio Matos
On Tuesday, 8 August 2017 15.50.28 WEST Dr Eberhard Lisse wrote:
> Hi,
> 
> is there a way of changing a lyx file from an older version to the
> current one on the command line, like opening the file, making a
> modification to trigger the saving allowed and saving it under the old
> filename?
> 
>   find . -name '*lyx' -exec whatever {} \;
> 
> 
> I wouldn't mind even a Apple Script :-)-O
> 
> greetings, el

I do not use macs, last time I did it was running linux as opposed to macos 9. 
:-)

In any case the script responsible for converting the lyx files to a newer 
format is called lyx2lyx.

If you get its path (e.g. here on linux it is /usr/share/lyx/lyx2lyx/lyx2lyx) 
then you can call it 
directly. It has several options for command line call and it even supports 
compressed lyx files 
directly.

I can help further if you need.

Regards,
-- 
José Abílio


Re: Unable to open file........

2017-04-08 Thread José Abílio Matos
On Saturday, 8 April 2017 00.14.33 WEST Charlie wrote:
> More numbers.
> 
> I attempted several encodings with the text editor but no joy. The
> numbers changed a little bit but not a great deal.
> 
> Just a question here. One of the reasons use LyX is because I thought
> any LyX file could be opened in a text editor and the contents rescued?
> Now I wonder? I assume that I will lose some file and their content
> anyway?

The output that you show looks like Postscript and not lyx in any reasonable 
way.

> It doesn't matter if no one can help me with the problem. However, I
> would like to know if I will lose old LyX files, be unable to open them
> as time goes on and LyX evolves?

LyX uses an auxiliary program called lyx2lyx to convert the old formats and 
until the moment we have a very good record. If there are any bugs we fix them 
as soon as possible. I am not aware of any file where we have failed the 
conversion.
 
> TIA
> 
> Stay well,
> Charlie

Regards,
-- 
José Abílio


Re: lyx to latex

2017-03-23 Thread José Abílio Matos
On Wednesday, 22 March 2017 20.48.17 WET Patrick Dupre wrote:
> Thank, But it does not solve my problem:
> 
> I made the correction in the source file and installed it.
> In my opinon, there is an issue with lay because.
> IN my preference It set:
> File Handling -> Converter:
> Lyx -> rtf
> latex2rtf -p -S $$i

Hi Patrick,
you should have the converter to go LaTeX(plain) -> rtf, the starting 
point should be LaTeX(plain) and not LyX. The lyx will take care of the 
conversion path. :-)

Regards,
-- 
José Abílio


Re: RHEL6 Linux 2.1.4 Compiling Help

2016-09-24 Thread José Abílio Matos
On Wednesday, September 21, 2016 5:39:40 PM WEST Ben Lowe wrote:
> I'd be grateful with help compiling Lyx on RHEL6
> (2.6.32-573.3.1.el6.x86_64).  I compiled Lyx 2.1.4 a while back with
> no problem but having issues on 2.2.1. I have attached my configure
> log and makefile logs. I am using conda with a python 2.7 environment
> loaded (default is python 3.5).
> 
> When I configure, it only has a minor error due to Image Magic which I
> believe I can ignore. The make fails with:
> 
> 
> Thanks for any help,
> 
> Ben

Hi,
does not the package from EPEL work?
https://fedoraproject.org/wiki/EPEL

Everytime that we release for Fedora we do it as well for EPEL, so it should 
work. :-)

We have the packages here for 6: https://dl.fedoraproject.org/pub/epel/6/
x86_64/

Regards,
-- 
José Abílio


Re: Update

2016-08-26 Thread José Abílio Matos
On Friday, August 26, 2016 4:12:42 PM WEST Patrick Dupre wrote:
> Hello,
> 
> In the version 2.2.1 that I installed, the update function does not
> work as it use to do!!
> I does not update the pdf file that I previously viewed (CTRL R).
> I only have the option to kill the viewed version and to reload the
> documents.
> 
> Can I improve this behavior ?
> 
> Thank.

Hi Patrick,
I assume that you are using the fedora package.

Could you give us further details, what program are you using to view the 
pdfs?

I am using okular and I did not notice any change in this regard also there 
was not any change on the fedora package regarding this issue between 2.2.0 
and 2.2.1

Regards,
-- 
José Abílio


Re: ....document-lyxformat-474.lyx

2016-07-25 Thread José Abílio Matos
On Monday, July 25, 2016 10:04:21 AM WEST Michael Berger wrote:
> Hi,
> 
> I am getting file names of the form shown above after upgrading to LyX
> 2.2.0.
> 
> What exactly is the purpose and may I safely remove these?

document-lyxformat-474.lyx is the name of the original file, saved with 
lyx-2.1.

document.lyx is then the same file saved with lyx-2.2.

Everytime that lyx-2.2 opens a file saved with a previous version, like to 
lyx-2.1 in your example, it saves the original with the suffix lyxformat-474, 
or lyxformat-413 for lyx-2.0, and so on.

The purpose of saving the previous file is to insure that if for some reason 
the upgrade process has failed you still have the original document in to 
order to avoid data loss.

If the upgrade works, as it should as it happens most of the time (~99.% 
;-) ), you are free to erase the original file.

> Thanks and regards,
> 
> Michael

I hope that this helps, regards,
-- 
José Abílio


Re: Lyx-Pdf problem

2016-07-25 Thread José Abílio Matos
On Monday, July 25, 2016 10:31:06 AM WEST Dr Eberhard Lisse wrote:
> Why are you sending this in a Microsoft format?
> 
> el

It was just a way to embed the snapshot of the error. An envelope could have 
been saved by inserting directly the figure in the email. :-)

On Monday, July 25, 2016 12:16:01 PM WEST Abhinav Narayanan wrote:
> Hi, 
> 
> I have been using Lyx for some years now. Recently, I installed Lyx 2.2
> along with Miktex 2.9 on a new computer (Windows 8). However, when I try to
> compile a simple document I get this message (see attached). I never had
> any problems with Lyx in so many years. I have tried reinstalling a fresh
> version which didn't solve the problem. 

In any case we would be better served with the text output of

Document-> LaTeX Log

There press the button that says "Go to next error" and see what is shows.

Regards,
-- 
José Abílio


Re: Math: non-tex fonts default -> error

2016-07-01 Thread José Abílio Matos
On Friday, July 1, 2016 9:13:07 AM WEST Neal Becker wrote:
> There it is!
> I've tried 
> sudo mktexlsr --verbose 
> and also rm -rf ~/.texlive2015 to clean cache.

Hi Neal,
do you have texlive-lm-math installed?

If not this should work:
# dnf install texlive-lm-math

Regards,
-- 
José Abílio