]> git.lyx.org Git - lyx.git/blob - lib/RELEASE-NOTES
c605cb48502dad54917687050205e40f0584e987
[lyx.git] / lib / RELEASE-NOTES
1 !Important Changes in LyX 2.3.0
2
3
4 !!Interface changes
5
6 * LyX now has "inverted" branch insets, which output their contents just in
7   case a given branch is not "activated". This makes inclusion of alternate
8   material in different versions easier.
9
10 * When inserting a command or symbol in mathed, it is now automatically
11   wrapped in a real inset (either \text or \ensuremath) assuring the correct
12   mode, instead of being wrapped only in the output. The wrapping inset can
13   be safely dissolved, as it will be automatically inserted at export time
14   if needed, as usual.
15
16 * The new setting
17   "Document->Settings->Fonts->Output em- and en-dash as ligatures" forces
18   output of en- and em-dashes as -- and --- when exporting to LaTeX.
19   It is is "true" by default but "false" when opening documents edited
20   with LyX 2.2.
21   See chapter 3.9.1.1 "Dashes and line breaks" of the User Guide and
22   "Caveats when upgrading from earlier versions to 2.3.x" below.
23
24 * The following UI translations were dropped, because the lack of translation
25   maintenance:  Russian, Danish, Greek, Serbian, Galician, Catalan, Romanian,
26   Dutch.
27
28 !!Documents compilation process and images conversion
29
30 * It is now possible to enable the -shell-escape option only for specific
31   documents, rather than having to enable it globally in preferences.
32   This is achieved by checking "Allow running external programs" in
33   Document->Settings->Formats. LyX will now check whether -shell-escape
34   has been added to a LaTeX converter and invites the user to remove it
35   in favor of the new mechanism when that LaTeX converter is used.
36
37 * The converters definition syntax (LYX_HOME/lyxrc*) now supports a
38   new option, 'needauth', to prevent completely automated execution of
39   the converter, unless LyX acquired explicit consent by the
40   user. This is a new security feature, useful for converters that are
41   capable of executing arbitrary code, such as R scripts (used with
42   sweave/knitr), embedded within LyX documents. The user needs to
43   explicitly grant per-document permission on the first need for using
44   the converter on each document, unless he/she checks the "Don't ask
45   again for this document" checkbox in the permission dialog. The new
46   behavior can be fine-tuned from two new options in the preferences
47   dialog (see their description below). These also allow for disabling
48   'needauth' converters altogether, if desired (default behavior).
49
50 * LyX now supports insertion and automated conversion of Gnuplot scripts,
51   recognized by their typical extension ".gp" or ".gnuplot". These can
52   directly be inserted in a LyX document using the "Insert->Graphics..."
53   dialog, then selecting the Gnuplot script. LyX automatically adds a
54   proper "set terminal ..." and "set output ..." line to convert the
55   file to the needed output format (e.g., .eps, .pdf), depending on
56   whether the document is being previewed on screen or compiled as PDF
57   or other formats. Terminal options cannot be fine-tuned at the moment,
58   but that's a capability that may come soon, also according to the
59   received feedback from users.
60
61
62 !!!The following pref variables were added in 2.3:
63
64 * \default_platex_view_format
65   Determine the default output format for Japanese documents that use the
66   pLaTeX backend [default: "pdf3" == "PDF (dvipdfm)"]
67
68 * \jbibtex_alternatives
69   Alternative bibliography converters for Japanese.
70
71 * \pygmentize_command
72   holds the name of the driver command used by the Pygments python module.
73
74 * \use_converter_needauth
75   when enabled, user is asked before calling any (possibly dangerous)
76   external converter with the 'needauth' option
77
78 * \use_converter_needauth_forbidden
79   when enabled, use of external converters with the 'needauth' option is
80   forbidden
81
82
83 !!!The following pref variables were changed in 2.3:
84
85 * \bibtex_command
86   New (default) value "auto".
87
88 * \screen_zoom
89   This is now independent of the value set via buffer-zoom[-in|-out].
90
91
92 !!!The following new LyX functions have been introduced in 2.3:
93
94 * buffer-external-modification-clear
95   Clear the external modification flag on the current buffer
96
97 * buffer-zoom
98   Zooms the screen fonts to a given value or resets to the default zoom
99   when no argument is given.
100
101 * branch-invert
102   Toggles inversion status of branch inset.
103
104 * devel-mode-toggle
105   Activate/deactivate the developer mode, which consists mainly in:
106   (1) more information shown in the status bar and (2) help file
107   opened in editable mode. This state used to be hardcoded at compile
108   time.
109
110 * font-crossout
111   Cross out characters.
112
113 * icon-size [size in px]
114   Set the icon size in the toolbar
115
116 * lyx-activate
117   Activates the LyX window. Useful in combination with reverse search.
118
119 * toolbar-movable
120   Toggles movability of a given toolbar.
121
122
123 !!!The following LyX functions have been changed in 2.3:
124
125 * buffer-export
126   If no or "default" argument is given, the function now exports to the default
127   output format.
128
129 * buffer-zoom-in, buffer-zoom-out
130   The Zoom value set by these is now relative to the default zoom value set in
131   preferences.
132
133 * inset-modify
134   This function now also applies to quote insets. It takes a three-character
135   string as an argument, referring (1.) to the style (e = ``english'',
136   s = ''swedish'', g = ,,german``, p = ,,polish'', f = <<french>>, a = >>danish<<),
137   (2.) to the side (l = left, r = right) and (3.) to the quotation level
138   (s = single, d = double). So "eld" means "English left double quotation mark".
139   A dot in the string means: take the current value. So "inset-modify changetype e.."
140   will only change the style to English, while letting side and level as is,
141   "inset-modify changetype f.s" will change the style to French and the level to
142   single, leaving the side value.
143
144   This function is most useful when combined with inset-forall. E.g.,
145   "inset-forall Quotes inset-modify changetype f.."
146    => change all quote insets to French style, maintaining current side and level
147   "inset-forall Quotes inset-modify changetype ..s"
148    => change all quote insets to single quotes, keeping style and level
149   "inset-forall Quotes inset-modify changetype g.s"
150    => change all quote insets to German single quotes, keeping left/right setting
151
152 * paragraph-goto
153   The function has now two further optional arguments that determine end positions.
154   If specified, a selection is performed.
155
156 * quote-insert
157   The function now has a second and third optional argument to specify
158   the side (left, right, auto) and quotation mark style (english, swedish,
159   german, polish, french, danish).
160
161 * specialchar-insert
162   New option allowbreak that adds an invisible line break option,
163
164 * word-delete-forward, word-delete-backward, char-delete-forward,
165   char-delete-backward
166   The pre-2.3 behavior of these functions is equivalent to the 2.3 behavior with
167   the "force" option appended. The new default behavior (without "force") is
168   to select big insets on the first call and delete them only on the second.
169   This new behavior is consistent with how delete works in LyX's math editor.
170
171
172 !!!The following new folders have been added to the LyX directory
173
174 * citeengines: Contains the *.citeengine files that determine the citation
175   formatting and features.
176
177 * xtemplates: Contains the *.xtemplate files that define the external templates
178   (previously in the external_templates file).
179
180
181 !!!The following preferences files have been removed from the tarball in 2.3:
182
183 * external_templates. This files has been split into multiple *.xtemplate
184   files that are now shipped as content of the xtemplates directory.
185
186
187 !!Changes with respect to external programs and libraries in 2.3:
188
189 * Inkscape SVG with separate LaTeX + PDF or PS output is supported via External
190   Material.
191
192 * Add some editor/viewer applications to (re)configure checks.
193
194 * The included Hunspell has been upgraded to version 1.6.2.
195
196 * The included libiconv has been upgraded to version 1.15.
197
198 * LyX now includes a Qt-based fallback-converter for Mac to compensate missing
199   ImageMagick convert utility.
200
201
202 !!Known issues in version 2.3.0
203
204 * See http://www.lyx.org/trac/wiki/BugTrackerHome.
205
206
207 !!Caveats when upgrading from earlier versions to 2.3.x
208
209 * The external_templates file has been split into one file per template,
210   which are now located in lib/xtemplates/*.xtemplate. This makes it easier
211   to add new templates or modify existing ones. If you have modified
212   the external_templates file, you will have to move the modifications to
213   the respective *.xtemplate file manually.
214
215 * If you used literal em- and en-dashes in pre-2.2 documents,
216   you must manually unselect
217   "Document->Settings->Fonts->Output em- and en-dash as ligatures"
218   to ensure unchanged behaviour.
219
220 * ZWSP characters (u200b) following literal em- and en-dashes are deleted by
221   lyx2lyx when converting to 2.3 format. If you used them as optional line
222   breaks after dashes, convert them to space insets before opening your
223   document with LyX 2.3 or the optional line breaks will be lost!
224
225 * If using TeX fonts and en- and em-dashes are output as font ligatures,
226   when exporting documents containing en- and em-dashes to the format of
227   LyX 2.0 or earlier, the following line has to be manually added to the
228   unicodesymbols file of that LyX version:<br>
229   0x200b "\\hspace{0pt}" "" "" "" "" # ZERO WIDTH SPACE<br>
230   This avoids "uncodable character" issues if the document is actually
231   loaded by that LyX version. LyX 2.1 and later versions already have the
232   necessary definition in their unicodesymbols file.
233
234 * If trying to compile documents using R scripts and sweave/knitr, LyX
235   2.3.x would not allow for re-running the R scripts, unless the user:
236   1) explicitly disables the "Forbid use of needauth converters"
237   option in the LyX preferences;
238   2) provides explicit consent to the use of the converter on the first
239   compilation of the R-enhanced document.
240
241 * LyX now gives a warning if a document mixes title and non-title layouts.
242   In some cases, this warning is harmless, but in other cases the document has
243   a serious problem even though the LaTeX command does not exit with error. For
244   example, create a document with a title layout, then a standard layout, and
245   then an author layout, and you will see in the PDF that the author is not
246   typeset as an author.
247
248
249 !! If upgrading from a LyX version before 2.2.0
250
251 * Please additionally see the release notes from the versions in-between:
252   https://wiki.lyx.org/LyX/ReleaseNotes