Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

LyX /

New in LyX 2.4

Categories: Development, LyX_2_4
<< | Page list | >>

About the new features in LyX 2.4.

What is new in LyX 2.4?

The LyX Team

May 2019

§ New features brought by the new file format

Unicode is now default everywhere

LyX has been using Unicode (utf8) internally for a long time now. Unicode has also been used with the "modern" TeX engines (XeTeX, LuaTeX) by default. As of LyX 2.4, with LaTeX itself having switched to utf8 as default in 2018, LyX now also uses utf8 encoding per default in classic (pdf)latex ("per default" certainly means that the traditional encodings are still available and can still be made selected automatically).

Note that this does not affect existing documents (which are left untouched). Note also that LyX also does not touch personal defaults and templates. That is to say, if you still see traditional encoding preset for new documents, you can change that in Document→Settings...→Language by selecting "Unicode (utf8) [default]" and hitting "Save as Documents Defaults" afterwards. Your personal templates need to be changed manually if desired.

§ Table styles

LyX now provides several table styles from which you can select when inserting a table. For instance you can now select, either locally in the Insert→Table dialog or globally in Document→Settings...→Text Layout, that newly inserted tables automatically use the "formal" (a.k.a. booktabs) style, a simple grid style, or no border lines at all. A style pre-selection can also be made in the layout file. You can even define new styles, which is as simple as creating three LyX documents, each containing a table in your style (with one, two, and three rows, respectively).

§ Variable table column width

LyX now features a "variable" table column width that makes the column automatically expand to match the specified table width (this feature uses the tabularx package for single-page and the xltabular package for multi-page tables)

§ Less constraints in standard table columns

LyX now allows paragraph and line breaks as well as layout changes in non-fixed width table columns. Internally, the column type "V" provided by the varwidth package is used for this purpose.

§ Trimming of formal table's midrules

Formal tables often use disconnected midrules to indicate grouping of columns (the booktabs package that is used for formal tables supports this by means of the (l) and (r) arguments to \cmidrule). LyX now supports this as well:

   

§ Float alignment

It has been requested by many users to be able to globally specify an alignment for all float contents. This is now possible. The default alignment of floats contents can now be set in Document→Settings...→Float Settings and locally modified in the Float Settings dialog:

 

§ Flexible text fields

LyX since long had a rather crude Insert→Date function that inserted a static date formatted via the strftime programm. Its usability was rather limited. To improve this, LyX 2.4 introduces the concept of "Fields" known from word processors. Most notably, it features different date and time formats which adapt to the context language. Besides these, some other information types such as file name, user name/email and version control information are available as well (next to types that are mostly relevant to developers and used in the LyX manuals, such as LaTeX package availability, LyX function shortcuts etc.; this latter information has been available for a long time, but its use was all but transparent).

 

§ List/Bibliography preambles

Via Insert→List Preamble or Insert→Bibliography Preamble, you can now insert LaTeX code between the beginning of a list or bibliography environment and the first item. This is helpful if you want to redefine counters or lengths, something that was hitherto only possible via ugly hacks in LyX.

§ Bibliography encoding

The bibliography databases can now have a different encoding than the LyX file (you can specify the divergent encoding in the BibTeX/BiblaTeX dialog). With Biblatex, it is even possible to mix bib files with divergent encoding (this requires Biblatex 3.12 at least).

§ Fonts

The following (LaTeX) fonts are now supported natively:

  • PT Fonts These "Public Types of Rus­sian Fed­er­a­tion" focus on Cyrillic and contain also Latin letters.
  • Enhanced Bitstream Charter fonts via the XCharter LaTeX package.
  • DejaVu
  • IBM Plex
  • Noto Fonts in all available Shapes (Regular, Medium, Thin, Light, Extralight)
  • Adobe's Source Code Pro, Source Sans Pro, and Source Serif Pro

§ New supported document languages

  • Malayalam (polyglossia only)

§ New supported LaTeX commands

  • Support for the landscape environment of the [pdf]lscape packages has been added in form of the new Landscape module.
  • The markup commands of the soul package (\caps, \hl, \so, \st, \ul) is now supported by the Hyphenatable Text Markup (Soul) module

§ Line numbering in the output

It is possible to add line numbers in your typeset document via Document->Settings->Numbering & TOC->Lines numbering. The lineno package is used in backgrounds and it's basic parameters can be passed through the settings dialog as well.

§ Miscellaneous

  • The possibility to switch between raw LaTeX input and formatted input in some dialog widgets has been extended to included listing's captions.

§ General improvements (file format independent)

§ User Interface improvements

New Templates/Examples dialog

  • LyX 2.4 introduces a new dialog to access templates and example files (via File→New From Template... and File→Open Example..., respectively). This dialog lists those files in a transparent, structured way. It includes also examples and templates from the user directory (which have been hard to access with the native file dialog).
  
The example and template names are also more explanatory, and they are translated to the GUI language.
Furthermore, it is now easier to store new template files through the new menu item File→Save As Template..., which will guide you to the appropriate location in your user directory.

Redesigned Text Properties dialog

  • The Text Properties dialog, which has been very badly designed and thus subject to many bug reports and irritations, has been completely reworked and now looks and behaves more like users expect. Particularly the "toggling" behavior that irritated so many users has been dropped:
Furthermore, there is now an option to exclude text passages from spellchecking.

Redesigned Bib(la)TeX dialog

  • The Bib(la)tex settings dialog has undergone a major redesign as well. It now displays available and selected bibliography databases in one place, and has gained some new functionality (such as encoding selection, external editing of individual databases, and a filter for quick selection in large lists)

Redesigned Module selection dialog

  • The module selection in Document→Settings...→Modules now displays the available modules sorted by categories. This should make it easier to locate modules for specific tasks.
The information display has been improved.
Furthermore, there is now a filter for quick search of modules both by GUI name and module (file) name.

General dialog improvements

  • The dialogs adapt better to your OS/Desktop environment (e.g., order of OK/Apply/Cancel buttons).

Toolbar extensions

  • The "Apply recent text properties" and "Paste" toolbar buttons now provide a history (and thus let you apply more than just the most recent thing).
    The "Apply recent text properties" button furthermore provides an option to reset all font settings to the default value with one click:
 
  • Both Custom Character Styles and Custom Insets can now be directly selected from the toolbar.
 

Further enhancements to the user experience

  • Collapsible insets can now be edited externally. This is enabled by the EditExternal inset layout tag. By default, Chunks and ERT can be so edited.
  • Clicking on an 'include' inset with the control key held down now opens the included file for editing, without having to go via the settings dialog.
  • The use of author-year citations (natbib) with the bibliography environment (rather than BibTeX) is now much more straightforward.

§ Better Handling of Special Cases

  • LyX now has basic support for the cprotect package. This means that "verbatim" input can be used now at places where a LaTeX error would have occurred previously, such as verbatim paragraphs in frame boxes, URLs with characters such as '#' or '%' in section headings or footnotes or comment insets in captions, which allows us to resolve some really old bug reports.

§ New or changed LFUNs

The following functions have been added:

  • paragraph-select is a new convenience function to select the paragraph surrounding the actual cursor position.
  • buffer-write-as-template is a convenience function to ease saving a document in the (personal) templates folder.
  • export-cancel is used to cancel background export processes.
  • tabular-style-insert inserts a table in a specified style.

The following functions have been changed:

  • file-insert: optional second parameter ignorelang to make the insertion ignore the inserted file's main language (and rather adapt it to the insertion context's language).
  • set-graphics-group was renamed to graphics-set-group.
  • info-insert buffer vcs-* was renamed to info-insert vcs *

The following functions have been removed:

  • date-insert: this function has been superseded info-insert date.

§ Display

  • §The improvements to the "painter" (display of text and things in the LyX workarea) have continued in this cycle, in particular by respecting better Qt's paint events. This leads to smoother editing, and enables smoother fonts on Linux (sub pixel aliasing).
  • Superscripts and subscripts in text mode are now displayed correctly in a smaller size.

§ Miscellaneous

  • Advanced find has undergone significant improvements, most notably performance-wise (speedup) and with regard to searching while respecting the formatting.
  • The support for some languages has been further improved (this particularly concerns right-to-left languages and languages with non-latin script)

§ Under the hood

§ Backported

Categories

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2019-05-23 15:45 CEST