Merge branch '2.4.x' into 2.4.1-devel

This commit is contained in:
Richard Kimberly Heck 2024-06-02 21:49:54 -04:00
commit 701c763221
78 changed files with 28378 additions and 26119 deletions

View File

@ -1,15 +1,11 @@
Public release of LyX version 2.4.0 RC4
=========================================
Public release of LyX version 2.4.0
===================================
We are proud to announce the first public release candidate of the new LyX 2.4
series. This pre-release is meant for testing and should not be used for
serious work. For curious users who would like to test in order to help catch
bugs before the 2.4.0 release, please back up all of your documents and be
prepared for the worst to happen. Most users (who desire a stable LyX version)
should not use this pre-release.
We are proud to announce the release of the new LyX 2.4 series.
The 2.4 series has a rich set of new features compared to the current stable
series. An overview of the new features can be found here:
After long 6 years of development the 2.4 series has a rich set
of new features compared to the current stable series.
An overview of the new features can be found here:
https://wiki.lyx.org/LyX/NewInLyX24
@ -17,10 +13,9 @@ As this release ships with new features, we strongly recommend that packagers
of LyX on various platforms and distributions read RELEASE-NOTES in order to
get the new dependencies right.
You can download LyX 2.4.0 RC4 from http://ftp.lyx.org/pub/lyx/devel/ or
from a mirror listed at https://www.lyx.org/Download#toc11.
You can download LyX 2.4.0 from https://www.lyx.org/Download
We appreciate your help in testing this pre-release!
We hope you will enjoy the result!
If a file from an earlier version of LyX is opened *and saved* with
any version of 2.4.x, then the original file will automatically be
@ -37,9 +32,9 @@ The file RELEASE-NOTES also lists some known issues and problems compared
to the current stable releases (LyX 2.3.x).
As with any major release, this one comes with a lot of new features but
also some bugs. If you think you have found a bug in LyX 2.4.0 RC4, either
also some bugs. If you think you have found a bug in LyX 2.4.0, either
email the LyX developers' mailing list (lyx-devel at lists.lyx.org),
or open a bug report at https://www.lyx.org/trac/wiki/BugTrackerHome.
or open a bug report at https://www.lyx.org/trac/wiki/BugTrackerHome .
Please specify if the behavior you are reporting is different from behavior
in a previous LyX version.

View File

@ -55,9 +55,9 @@ Requirements
First of all, you will need a C++11 standard conforming compiler, like g++ (at
least 4.9, to have proper srd::regex) or clang++.
LyX makes great use of the C++ Standard Template Library (STL).
This means that gcc users will have to install the relevant libstdc++
library to be able to compile this version of LyX.
LyX makes great use of the C++ Standard Library. This means that gcc
users will have to install the relevant libstdc++ library to be able
to compile this version of LyX.
For full LyX usability we suggest to use Qt 5.6 and higher, or at the
very least Qt 5.4. It is also possible to compile against Qt 6. The

8
README
View File

@ -27,8 +27,8 @@ What do I need to run LyX?
Either:
* a Unix-like system (including Windows with Cygwin)
* Windows Vista or newer
* Mac OS 10.4 or newer
* Windows 7 or newer
* Mac OS 10.13 or newer
A decent LaTeX2e installation (e.g. TeX Live for Linux, MikTeX for
Windows).
@ -42,7 +42,7 @@ How does the LyX version scheme work?
number "2.x.y" indicates a stable release '2.x', maintenance
release 'y'. In other words, LyX 2.3.0 was the first stable
release in the 2.3-series of LyX. At the time of writing, the
latest maintenance release in the 2.3-series is LyX 2.3.4.
latest maintenance release in the 2.3-series is LyX 2.3.7.
Please note that maintenance releases are designed primarily to
fix bugs, and that the file format will _never_ change due to a
@ -101,7 +101,7 @@ Okay, I've installed LyX. What now?
the "Introduction" item under the Help menu. You should follow
the instructions there, which tell you to read (or at least skim)
the Tutorial. After that, you should also read "Help>LaTeX
configuration" which provides info on your LaTeX configuration
Configuration" which provides info on your LaTeX configuration
as LyX sees it. You might be missing a package or two that you'd
like to have.

View File

@ -54,7 +54,7 @@ Function DownloadHunspell
Push $9
${IfNot} ${FileExists} "$INSTDIR\Resources\dicts\$R9"
inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/$R9" "$INSTDIR\Resources\dicts\$R9" /END
inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/dictionaries/dicts/$R9" "$INSTDIR\Resources\dicts\$R9" /END
Pop $9
${If} $9 != "OK"
MessageBox MB_OK|MB_ICONEXCLAMATION "$(HunspellFailed)" # $(HunspellFailed) uses $R9
@ -70,7 +70,7 @@ Function DownloadThesaurus
Push $9
${IfNot} ${FileExists} "$INSTDIR\Resources\thes\$R9"
inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/thes/$R9" "$INSTDIR\Resources\thes\$R9" /END
inetc::get /TIMEOUT=5000 "https://www.lyx.org/trac/export/HEAD/dictionaries/thes/$R9" "$INSTDIR\Resources\thes\$R9" /END
Pop $9
${If} $9 != "OK"
MessageBox MB_OK|MB_ICONEXCLAMATION "$(ThesaurusFailed)" # $(ThesaurusFailed) uses $R9

View File

@ -629,7 +629,8 @@ Section -ProgramFiles
File "${FILES_QT}\bin\platforms\qwindows.dll"
SetOutPath "$INSTDIR\bin\styles"
File "${FILES_QT}\bin\styles\qwindowsvistastyle.dll"
File /nonfatal "${FILES_QT}\bin\styles\qwindowsvistastyle.dll"
File /nonfatal "${FILES_QT}\bin\styles\qmodernwindowsstyle.dll"
# Resources
SetOutPath "$INSTDIR\Resources"

View File

@ -430,7 +430,7 @@ function(determineversionandbuildtype configfile package version dirs date build
setstripped(PACKAGE_VERSION ${_PV})
setstripped(PACKAGE_BUGREPORT ${_PBU})
set(${package} ${PACKAGE_BASE} ${PACKAGE_VERSION} ${PACKAGE_BUGREPORT} PARENT_SCOPE)
if(PACKAGE_VERSION MATCHES "^\([0-9]+\)\\.\([0-9]+\)\(\\.\([0-9]+\)\(\\.\([0-9]+\)\)?\)?[-~]?\([A-Za-z]+[0-9]*\).*$")
if(PACKAGE_VERSION MATCHES "^\([0-9]+\)\\.\([0-9]+\)\(\\.\([0-9]+\)\(\\.\([0-9]+\)\)?\)?[-~]?\([A-Za-z]+[0-9]*\)?.*$")
set(LYX_MAJOR_VERSION ${CMAKE_MATCH_1})
set(LYX_MINOR_VERSION ${CMAKE_MATCH_2})
set(LYX_RELEASE_LEVEL ${CMAKE_MATCH_4})
@ -459,7 +459,7 @@ function(determineversionandbuildtype configfile package version dirs date build
set(${buildtype} "development" PARENT_SCOPE)
elseif(LYX_BUILD_TYPE MATCHES "^\(alpha|beta|rc|pre\)[0-9]*$")
set(${buildtype} "prerelease" PARENT_SCOPE)
elseif(LYX_BUILD_TYPE MATCHES "^$")
elseif("${LYX_BUILD_TYPE}" MATCHES "^$")
set(${buildtype} "release" PARENT_SCOPE)
else()
set(${buildtype} "unknown" PARENT_SCOPE)

View File

@ -14,7 +14,7 @@
# Where we will do our work
BASE="/cvs/lyx/lyx-release";
# Where our git repository lives
SRCDIR="/cvs/lyx/lyx-devel";
SRCDIR="/cvs/lyx/lyx-stable";
# editor
if [ -z "$EDITOR" ]; then EDITOR=vi; fi

View File

@ -26,7 +26,7 @@ done
if [ -z "$FARM" ]; then
echo "You must set the FARM variable to run this script, e.g.:";
echo "# FARM=/cvs/lyx-www/ bash check-po.sh";
echo "# FARM=/cvs/lyx-www/ bash update-po.sh";
exit 1;
fi
@ -93,7 +93,7 @@ fi
if diff -w -q "$I18NFILE $FARM/$I18NFILE" >/dev/null 2>&1; then
echo No string differences found.
git checkout ./*.po;
git checkout ./*.po ./*.gmo;
exit 0;
fi
@ -138,11 +138,13 @@ if ! cd "$FARM"; then
fi
echo Updating the www-user tree...
# note that we're assuming this one is svn.
svn up;
if ! git pull; then
echo "Problem updating www-user tree";
exit 1;
fi
echo Moving $I18NFILE...;
mv "$LYXROOT/po/$I18NFILE" .;
echo Committing...;
$DEBUG svn commit -m "* $I18NFILE: update stats" $I18NFILE;
$DEBUG git commit -m "* $I18NFILE: update stats" $I18NFILE;

View File

@ -451,6 +451,9 @@
@bAndrew Parsloe
@iE-mail: aparsloe () clear ! net ! nz
Module updates
@bIdan Pazi
@iE-mail: idan.kp () gmail ! com
Windows-specific fixes
@bBo Peng
@iE-mail: ben.bob () gmail ! com
Conversion of all shell scripts to Python, shortcuts dialog, session, view-source, auto-view, embedding features and scons build system.
@ -667,7 +670,7 @@
@bMartin Vermeer
@iE-mail: martin.vermeer () hut ! fi
support for optional argument in sections/captions svjour/svjog, egs and llncs document classes. Lot of bug hunting (and fixing!)
@bVeselin
@bVeselin Jeliazkov
@iE-mail: vveesskkoo () gmail ! com
Bulgarian localization
@bJürgen Vigna
@ -745,6 +748,9 @@
@bXiaokun Zhu
@iE-mail: xiaokun () aero ! gla ! ac ! uk
bug reports and small fixes
@bJiaxu Zi
@iE-mail: 3119932298 () qq ! com
Chinese translation
If your name doesn't appear here although you've done something for LyX, or your entry is wrong or incomplete, just drop some e-mail to lyx@lyx.org. Thanks.

View File

@ -35,7 +35,7 @@
* Continuous spellcheck is now on by default, but only if the user does not have
an existing preferences file. In that case, the old setting is preserved.
* Document (or selection statistics) is now shown in status bar and can be
* Document (or selection) statistics is now shown in status bar and can be
disabled by the context menu.
* The actual enabled state of the synchronize TeX output option of the document
@ -44,11 +44,11 @@
* When using the document compare function, there is now an option to display the
differences using a special "Document Compare" author.
* InsetRef now supports starred commands. The starred commands stop hyperref from
creating a link (and are only available when hyperref is used). There is a
checkbox "No Hyperlink" for this purpose.
* The cross reference inset now supports starred commands. The starred commands
stop hyperref from creating a link (and are only available when hyperref is used).
There is a checkbox "No Hyperlink" for this purpose.
* Alt-Escape can be used to 'float' and redock widgets like the table of contents
* Alt-Escape can be used to 'float' and redock widgets such as the table of contents
or source view.
* Edit > Paste operation now preserves newlines in text by default.
@ -109,10 +109,15 @@
be found when processing your documents.
Package maintainers of distributions (e.g. openSUSE or Debian derivates)
where ghostscript conversions of ImageMagick are banned can simply
add dependencies for poppler-utils and libtiff-tools to workaround
add dependencies for poppler-utils and libtiff-tools to work around
the problem.
* LyX now supports hebrew and hungarian quotation styles.
* LyX now supports Hebrew and Hungarian quotation styles.
* cprotect.sty is now generally needed and should be required as
a dependency for installation.
!!!The following pref variables were added in 2.4:
@ -138,6 +143,7 @@
!!!The following pref variables were changed in 2.4:
* none.
!!!The following pref variables are obsoleted in 2.4:
@ -251,6 +257,7 @@
* date-insert: obsoleted by info-insert date.
!!!The following LyX function has been added and then removed in 2.4 development cycle.
* bidi: used as a first solution to provide icons that change
@ -281,6 +288,7 @@
!!!The following preferences files have been removed from the tarball in 2.4:
* none.
!!!The following metadata files have been added to the tarball in 2.4:
@ -300,6 +308,7 @@
* The dependency on sgmltools was dropped, see DocBook 5 section.
!!! Dependencies to generate ePub files:
* The DocBook XSLT 1.0 style sheets are a required dependency to generate
@ -327,8 +336,11 @@
!!Known issues in version 2.4.0
* Compiling LyX 2.4 on MacOS with Qt6 makes currently LyX unresponsive to
Control-Command keyboard shortcuts (bug #12641).
* Various versions of Qt6 (> 6.2) have problems with key events handling on MacOS.
In LyX, this results in Control-Command keyboard shortcuts not working if
LyX is compiled against such a version for MacOS (see bug #12641).
This is a Qt bug (QTBUG-123848) which will be fixed in Qt 6.8.0 and 6.7.1.
The fix might also be backported to Qt 6.5.6 and 6.2.13.
* Gnome environments defaulting to Wayland + mutter compositor might be missing
proper window decorations. This is a generic problem which can be for Qt-based
@ -368,6 +380,7 @@
or layout and argument to the appropriate list, or dictionary in
the function "convert_hebrew_parentheses(document)" in lyx_2_4.py.
!! If upgrading from a LyX version before 2.3.0
* Please additionally see the release notes from the versions in-between:

View File

@ -32449,7 +32449,7 @@ status open
\begin_layout Plain Layout
https://www.lyx.org/trac/browser/lyxsvn/dictionaries/trunk/thes/
https://www.lyx.org/trac/export/HEAD/dictionaries/thes/
\end_layout
\end_inset

View File

@ -157,8 +157,8 @@ def copy_tree(src, dst, preserve_symlinks=False, level=0):
link_dest = os.readlink(src_name)
os.symlink(link_dest, dst_name)
outputs.append(dst_name)
elif level == 0 and name == 'cache':
logger.info("Skip cache %s", src_name)
elif level == 0 and name in [ 'cache', 'configure.log', 'chkconfig.ltx' ]:
logger.info("Skip copy of %s", src_name)
elif os.path.isdir(src_name):
outputs.extend(
copy_tree(src_name, dst_name, preserve_symlinks, level=(level + 1)))

View File

@ -13286,7 +13286,9 @@ Linguistics
This module provides specific environments useful for linguistics (numbered examples,
glosses,
semantic markup,
OT tableau floats).
OT tableau floats,
Discourse Representation Structures,
phonetic symbols).
You can obtain information about this module in
\family sans
\bar under
@ -13385,7 +13387,7 @@ FiXme Notes
\begin_layout Standard
This module provides “FiXme” (marginal) annotations for document revision purposes.
A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
A list of annotations can be produced by using the “List of FIXMEs” in the outline panel.
The annotations are customizable via the LaTeX preamble.
See the
\family typewriter
@ -13403,18 +13405,23 @@ literal "false"
.
\end_layout
\begin_layout Paragraph
Note:
\end_layout
\begin_layout Standard
by default,
\series bold
Note
\series default
:
by default,
the notes are only displayed in “draft” mode (if the option “draft” has been inserted in
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Document Class\SpecialChar menuseparator
Class Options\SpecialChar menuseparator
Class
\begin_inset space ~
\end_inset
Options\SpecialChar menuseparator
Custom
\family default
).
@ -13430,7 +13437,11 @@ fxsetup{draft}
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
\SpecialChar LaTeX
Preamble
\begin_inset space ~
\end_inset
Preamble
\family default
.
\end_layout
@ -13444,15 +13455,31 @@ This module provides various kinds of annotations for PDF output.
See
\family sans
Help\SpecialChar menuseparator
Specific Manuals\SpecialChar menuseparator
PDF comments
Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar menuseparator
PDF
\begin_inset space ~
\end_inset
comments
\family default
and
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
PDF Comments
PDF
\begin_inset space ~
\end_inset
Comments
\family default
.
\end_layout
@ -13478,15 +13505,31 @@ literal "false"
\family sans
Help\SpecialChar menuseparator
Specific Manuals\SpecialChar menuseparator
PDF forms
Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar menuseparator
PDF
\begin_inset space ~
\end_inset
forms
\family default
and
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
PDF Form
PDF
\begin_inset space ~
\end_inset
Form
\family default
.
\end_layout
@ -13534,7 +13577,11 @@ final
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Document Class\SpecialChar menuseparator
Class Options\SpecialChar menuseparator
Class
\begin_inset space ~
\end_inset
Options\SpecialChar menuseparator
Custom
\family default
) suppresses the output of TODO notes.
@ -13594,16 +13641,32 @@ tcolorbox
See
\family sans
Help\SpecialChar menuseparator
Specific Manuals\SpecialChar menuseparator
Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar menuseparator
Colored boxes
\family default
,
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Fancy Color Boxes
Fancy
\begin_inset space ~
\end_inset
Color
\begin_inset space ~
\end_inset
Boxes
\family default
and the
\begin_inset CommandInset href
@ -14020,7 +14083,11 @@ Width)
inset to
\family sans
Insert\SpecialChar menuseparator
Custom Inset
Custom
\begin_inset space ~
\end_inset
Inset
\family default
using the
\family typewriter
@ -14118,12 +14185,13 @@ fixltx2e
.
\end_layout
\begin_layout Paragraph
Note:
\end_layout
\begin_layout Standard
recent \SpecialChar LaTeX
\series bold
Note
\series default
:
recent \SpecialChar LaTeX
kernels (as of 2015/01/01) include the functionality of
\family sans
fixltx2e
@ -14246,15 +14314,31 @@ Language
See
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Multilingual Captions
Multilingual
\begin_inset space ~
\end_inset
Captions
\family default
and
\family sans
Help\SpecialChar menuseparator
Specific Manuals\SpecialChar menuseparator
Multilingual Captions
Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar menuseparator
Multilingual
\begin_inset space ~
\end_inset
Captions
\family default
further information on its use.
\end_layout
@ -14343,7 +14427,11 @@ endnotes
Use
\family sans
Insert\SpecialChar menuseparator
Custom Inset\SpecialChar menuseparator
Custom
\begin_inset space ~
\end_inset
Inset\SpecialChar menuseparator
Endnote
\family default
to insert an endnote and
@ -14356,7 +14444,11 @@ Endnotes
See also
\family sans
Help\SpecialChar menuseparator
Embedded Objects
Embedded
\begin_inset space ~
\end_inset
Objects
\family default
,
section
@ -14389,7 +14481,11 @@ Endnotes
See also
\family sans
Help\SpecialChar menuseparator
Embedded Objects
Embedded
\begin_inset space ~
\end_inset
Objects
\family default
,
section
@ -14427,7 +14523,11 @@ Endnotes
See also
\family sans
Help\SpecialChar menuseparator
Embedded Objects
Embedded
\begin_inset space ~
\end_inset
Objects
\family default
,
section
@ -14461,11 +14561,19 @@ Chess
\family default
where you will find
\family sans
Game 1
Game
\begin_inset space ~
\end_inset
1
\family default
and
\family sans
Game 2
Game
\begin_inset space ~
\end_inset
2
\family default
and the
\begin_inset CommandInset href
@ -14506,7 +14614,11 @@ Lilypond
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Lilypond Book
Lilypond
\begin_inset space ~
\end_inset
Book
\family default
.
It cannot be used if the modules
@ -14559,11 +14671,11 @@ The default numbering of numbered lists can be changed by adding an optional arg
I
\bar default
nsert\SpecialChar menuseparator
Enumerate
\begin_inset space ~
\end_inset
\bar under
S
\bar default
hort Title
Options
\family default
) to the first item of each level in the list.
There you add the command
@ -15344,7 +15456,6 @@ changes the description label font,
\family sans
style=definitio
\family default
\series bold
n
\end_layout
@ -15473,13 +15584,25 @@ paralist
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Paragraph Lists (paralist)
Paragraph
\begin_inset space ~
\end_inset
List
\begin_inset space ~
\end_inset
(paralist)
\family default
,
\family sans
Help\SpecialChar menuseparator
Specific Manuals\SpecialChar menuseparator
Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar menuseparator
Paralist
\family default
and the
@ -15530,7 +15653,11 @@ nolink "false"
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Noweb
\family default
@ -15538,14 +15665,26 @@ Noweb
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Noweb Listerrors
Noweb
\begin_inset space ~
\end_inset
Listerrors
\family default
and
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Noweb2\SpecialChar LyX
@ -15591,8 +15730,10 @@ install.packages(“knitr”)
.
\end_layout
\begin_layout Paragraph
Note
\begin_layout Standard
\series bold
Note:
\end_layout
\begin_layout Itemize
@ -15639,16 +15780,28 @@ Sweave
See
\family sans
Help\SpecialChar menuseparator
Specific Manuals\SpecialChar menuseparator
Specific
\begin_inset space ~
\end_inset
Manuals\SpecialChar menuseparator
Knitr
\family default
,
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Rnw (knitr)
Rnw
\begin_inset space ~
\end_inset
(knitr)
\family default
and section
\begin_inset space ~
@ -15718,7 +15871,11 @@ Sweave,
\family sans
File\SpecialChar menuseparator
Open Example\SpecialChar menuseparator
Open
\begin_inset space ~
\end_inset
Example\SpecialChar menuseparator
Modules\SpecialChar menuseparator
Sweave
\family default
@ -20092,7 +20249,7 @@ Hyphenatable Text Markup (Soul)
\end_layout
\begin_layout Standard
This modul defines text styles to highlight,
This module defines text styles to highlight,
space-out,
strike-through,
underline and capitalize/small-cap text by means of the

View File

@ -4348,7 +4348,7 @@ Notion Currently 15 different quote styles are distinguished (see params).
\end_layout
\begin_layout Description
Syntax quote-insert [<LEVEL>] [<SIDE>] [<STYLE>]
Syntax quote-insert [<LEVEL>] [<SIDE> <STYLE>]
\end_layout
\begin_layout Description

View File

@ -3642,14 +3642,6 @@ Additional Features
A&A Journal articles in the style and format used in Astronomy & Astrophysics
\end_layout
\begin_layout Description
ACS For submissions to the journals published by the American Chemistry Society
\end_layout
\begin_layout Description
AGU For submissions to the journals published by the American Geophysical Union
\end_layout
\begin_layout Description
AMS Layouts for articles and books in the style and format used by the American Mathematical Society (AMS).
There are three article layouts available.
@ -3700,7 +3692,7 @@ vitae classes to create curriculum vitae
\end_layout
\begin_layout Description
Elsarticle Layout for journals of the Elsevier publishing group
Elsevier Layout for journals of the Elsevier publishing group
\end_layout
\begin_layout Description
@ -3715,14 +3707,6 @@ Hollywood Used to type spec scripts for the US film industry.
.
\end_layout
\begin_layout Description
IEEEtran Layout for the journals published by the Institute of Electrical and Electronics Engineers (IEEE)
\end_layout
\begin_layout Description
IOP Layout for journals of the Institute of Physics publishing group
\end_layout
\begin_layout Description
Kluwer Layout for journals of the Kluwer publishing group
\end_layout
@ -3758,14 +3742,6 @@ TeX
Slides Used to make transparencies
\end_layout
\begin_layout Description
SPIE
\begin_inset space ~
\end_inset
Proceedings Layout for the journals published by The International Society for Optical Engineering (SPIE)
\end_layout
\begin_layout Description
Springer Layouts for journals of the Springer publishing group
\end_layout
@ -3774,7 +3750,7 @@ Springer Layouts for journals of the Springer publishing group
We will not go into detail about how to use these different document classes here.
You can find details about the non-standard classes in chapter
\emph on
Special Document Classes
Document Classes
\emph default
of the
\emph on
@ -3836,13 +3812,7 @@ Unavailable
Nothing is wrong.
\SpecialChar LyX
includes many more document classes than you will ever need to use,
and some of them,
like
\family sans
IOP
\family default
,
are highly specialized.
and some of them are highly specialized.
\SpecialChar LyX
tries to support as many different types of documents as possible,
and it includes almost one hundred different layout files,
@ -3898,9 +3868,7 @@ Although \SpecialChar LyX
and many users have done so.
Chapter
\emph on
Installing New Document Classes,
Layouts,
and Templates
Installing New Document Classes
\emph default
of the
\emph on
@ -41154,7 +41122,7 @@ status collapsed
\begin_layout Plain Layout
https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/
https://www.lyx.org/trac/export/HEAD/dictionaries/dicts/
\end_layout
\end_inset

View File

@ -40396,7 +40396,7 @@ status open
\begin_layout Plain Layout
https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/
https://www.lyx.org/trac/export/HEAD/dictionaries/dicts/
\end_layout
\end_inset

File diff suppressed because it is too large Load Diff

View File

@ -185,6 +185,8 @@ varwidth
\output_sync 0
\bibtex_command default
\index_command default
\float_placement class
\float_alignment class
\paperfontsize 12
\spacing single
\use_hyperref true
@ -222,7 +224,7 @@ varwidth
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 0
\use_refstyle 1
\use_formatted_ref 0
\use_minted 0
\use_lineno 0
@ -292,7 +294,7 @@ literal "false"
\begin_inset Note Note
status open
status collapsed
\begin_layout Plain Layout
@ -2347,7 +2349,7 @@ immédiate
\family default
de la fenêtre de dialogue,
chaque modification d'un champ de la fenêtre est appliquée directement.
Si vous déplacez le curseur vers une autre celule du tableau,
Si vous déplacez le curseur vers une autre cellule du tableau,
la fenêtre s'adapte avec les valeurs des paramètres de la nouvelle cellule.
Si vous modifiez les valeurs des longueurs qui se trouvent dans la fenêtre de dialogue,
vous devez appuyer sur
@ -16372,7 +16374,7 @@ L'option
\backslash
cmidrule
\series default
n'est pas actuellment reconnue par \SpecialChar LyX
n'est pas actuellement reconnue par \SpecialChar LyX
,
pas plus que les paramètres de
\emph on
@ -16380,15 +16382,15 @@ rognage
\emph default
.
Si vous en avez besoin,
vous pouvez insérer manuellment une commande
vous pouvez insérer manuellement une commande
\series bold
\backslash
cmidrule
\series default
avec les réglages appropriés en tant que code \SpecialChar TeX
comme première saisie dans la première cellute d'une ligne.
Cette ligne est ensuite tracée dan sle résultat imprimable au-dessus de la ligne courante.
comme première saisie dans la première cellule d'une ligne.
Cette ligne est ensuite tracée dans le résultat imprimable au-dessus de la ligne courante.
Le tableau
\begin_inset space ~
\end_inset
@ -22894,7 +22896,7 @@ Si vous utilisez des polices de taille plus grande que la taille normale,
strut
\series default
en code \SpecialChar TeX
au debut d'une ligne du tableau.
au début d'une ligne du tableau.
Le tableau
\begin_inset space ~
\end_inset
@ -28039,11 +28041,11 @@ literal "true"
Les options
\family sans
Plural
Pluriel
\family default
et
\family sans
Capitalized
Majuscules
\family default
ne sont disponibles que si vous utilisez le paquetage \SpecialChar LaTeX
@ -28053,7 +28055,7 @@ refstyle
.
\family sans
Plural
Pluriel
\family default
met le nom au pluriel,
e.
@ -28075,7 +28077,7 @@ tableaux
;
\family sans
Capitalized
Majuscules
\family default
met une capitale au nom,
e.
@ -28142,12 +28144,16 @@ nolink "false"
\begin_inset Newline newline
\end_inset
Ceci perlmet d'utiliser l'étiquette en code TeX.
Ceci permet d'utiliser l'étiquette en code TeX.
L'option
\family sans
No Prefix
Sans
\begin_inset space ~
\end_inset
préfixe
\family default
enelève le préfixe du nom de l'étiquette:
enlève le préfixe du nom de l'étiquette:
\begin_inset CommandInset ref
LatexCommand labelonly
@ -28798,7 +28804,15 @@ Les réglages pour les flottants peuvent être définis en deux endroits avec \S
Document\SpecialChar menuseparator
Paramètres\SpecialChar ldots
\SpecialChar menuseparator
Paramètres de flottant
Paramètres
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
flottant
\family default
,
vous pouvez positionner quelques options utilisées implicitement par tous les flottants du document (placement dans la page et alignement des contenus),
@ -28814,15 +28828,23 @@ Paramètres\SpecialChar ldots
\family default
une fenêtre de dialogue s'ouvre dans laquelle vous pouvez,
maintenant seulement pour le flottant concerné,
modifier le placement global et les options d'aligenement,
modifier le placement global et les options dalignement,
et préciser d'autres options qui ne sont disponibles que pour des flottants individuels.
Toutes ce soptions,
Toutes ces options,
que ce soit pour
\family sans
Document\SpecialChar menuseparator
Paramètres\SpecialChar ldots
\SpecialChar menuseparator
Paramètres de flottant
Paramètres
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
flottant
\family default
ou localement pour
\family sans
@ -28873,7 +28895,15 @@ Aussi bien dans
Document\SpecialChar menuseparator
Paramètres\SpecialChar ldots
\SpecialChar menuseparator
Paramètres de flottant
Paramètres
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
flottant
\family default
que dans
\family sans
@ -28888,7 +28918,15 @@ Paramètres\SpecialChar ldots
(Document\SpecialChar menuseparator
Paramètres\SpecialChar ldots
\SpecialChar menuseparator
Paramètres de flottant
Paramètres
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
flottant
\family default
),
soit pour un flottant particulier
@ -28899,13 +28937,37 @@ Paramètres de flottant
\family default
Ceci est possible avec
\family sans
Paramètres de placement
Paramètres
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
placement
\family default
.
Implicitement,
ces paramètres sont réglés à
\family sans
Paramètres implicites de la classe
Paramètres
\begin_inset space ~
\end_inset
implicites
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
la
\begin_inset space ~
\end_inset
classe
\family default
(signifiant que l'algorithme implicite de placement de la classe du document est utilisé) ou
\family sans
@ -28928,8 +28990,19 @@ Paramètres de flottant
Si vous voulez la changer,
sélectionnez
\family sans
Paramètres de placement:
Réglable.
Paramètres
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
placement:
\begin_inset space ~
\end_inset
Réglable.
\family default
Ceci vous permet de sélectionner une ou plusieurs options parmi:
@ -29668,7 +29741,7 @@ figuresright
\begin_layout Standard
Faire référence à un flottant pivoté se fait de la même manière que pour un flottant normal,
la mise en forme de la légende est aussi identique :
la mise en forme de la légende est aussi identique:
Le tableau
\begin_inset space ~
\end_inset
@ -30405,7 +30478,7 @@ nolink "false"
\begin_inset space \thinspace{}
\end_inset
column% et l'alignement de la boîte à
colonne% et l'alignement de la boîte à
\family sans
Bas
\family default
@ -33046,17 +33119,13 @@ status open
\begin_inset Caption Standard
\begin_layout Plain Layout
\lang english
\begin_inset CommandInset label
LatexCommand label
name "tab:cap-beside-tab-wider"
\end_inset
This is a caption is wider than the one in
\lang french
tableau
Ceci est une légende plus large que celle du tableau
\begin_inset space ~
\end_inset
@ -33390,15 +33459,7 @@ De la même façon que la table des matières fait la liste des sections du docu
Vous pouvez les insérer en utilisant le menu
\family sans
Insertion\SpecialChar menuseparator
Listes
\begin_inset space ~
\end_inset
&
\begin_inset space ~
\end_inset
TdM
Listes/Matières/Références
\family default
.
\end_layout
@ -33681,7 +33742,7 @@ Note
Pour retransformer une note en texte,
appuyez sur la touche
\family sans
backspace
RetourArrière
\family default
quand le curseur est au tout début de la note ou appuyez sur la touche
\family sans
@ -33826,7 +33887,7 @@ Page
Pour retransformer une note de bas de page en texte,
appuyez sur la touche
\family sans
Backspace
RetourArrière
\family default
quand le curseur est au tout début de la note ou appuyez sur la touche
\family sans
@ -34941,7 +35002,39 @@ Notes de fin
Pour utiliser des notes de fin à la place des notes de bas de page dans votre document,
charger le module
\family sans
Note de bas de page en fin de document
Note
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
bas
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
page
\begin_inset space ~
\end_inset
en
\begin_inset space ~
\end_inset
fin
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
document
\family default
à partir de
\family sans
@ -35920,7 +36013,7 @@ Attention!
\end_inset
écrit en souligné,
sans-sérif et en gras,
sans empattement et en gras,
ajoutez ce qui suit dans le préambule de votre document :
\end_layout
@ -37968,7 +38061,7 @@ definecolor{shadecolor}{rgb}{1,0,0}
\end_layout
\begin_layout Standard
Les largeurs et culeurs ainsi modifiées restent valables pour toutes les boîtes qui suivent la commandes qui les a changées.
Les largeurs et couleurs ainsi modifiées restent valables pour toutes les boîtes qui suivent la commandes qui les a changées.
\end_layout
\begin_layout Section
@ -39073,7 +39166,7 @@ backgroundcolor "yellow"
status open
\begin_layout Plain Layout
Box with teal frame color and yellow background color
Boîte avec un cadre bleu-vert et un fond jaune
\end_layout
\end_inset
@ -41747,7 +41840,7 @@ status collapsed
\end_layout
\begin_layout Standard
Les objets fixes enrobés sont utilisés pour laisser le texte s'écouler autour d'eux et leur position est déterminée par le nombre de lignes de texte situées audessus d'eux.
Les objets fixes enrobés sont utilisés pour laisser le texte s'écouler autour d'eux et leur position est déterminée par le nombre de lignes de texte situées au-dessus d'eux.
Contrairement aux flottants d'enrobage,
on ne peut pas avoir de légende numérotée.
\end_layout
@ -41987,7 +42080,15 @@ lettrine
\end_inset
doit être installé et vous devez utiliser le module Initiales (
doit être installé et vous devez utiliser le module
\family sans
Initiales
\begin_inset space ~
\end_inset
(lettrines)
\family default
(
\begin_inset space ~
\end_inset
@ -42005,7 +42106,7 @@ Modules
Pour insérer une lettrine,
utilisez le style
\family sans
Initial
Lettrine
\family default
.
Les paramètres sont insérés avec le menu
@ -42015,38 +42116,30 @@ Insertion
.
Le paramètre obligatoire
\family sans
\lang english
Initial
Lettrine
\family default
\lang french
contient la/les lettre(s) qui sert d'initiale,
le paramètre
\family sans
\lang english
Rest
Résidu
\begin_inset space ~
\end_inset
of
de
\begin_inset space ~
\end_inset
Initial
lettrine
\family default
\lang english
\lang french
contient
\lang english
the rest of the word or text of the initial letter(s)
\lang french
.
contient le reste du mot ou du texte.
Le paramètre
\family sans
\lang english
Options
\family default
\lang french
contient paramètres pour modifier la lettrine.
contient les paramètres pour modifier la lettrine.
Pour plus d'informations sur les paramètres possibles,
voyez la documentation du paquetage
\series bold
@ -42063,7 +42156,7 @@ literal "true"
.
Le style lui-même contient le texte qui doit entourer la lettrine.
Le style habituel est par conséquent que le mot dont la première lettre est l'initiale soit en
Le style habituel met par conséquent le mot dont la première lettre est l'initiale en
\shape smallcaps
petites capitales
\shape default
@ -42978,7 +43071,7 @@ literal "false"
\series default
.
Pour plus d'information sur la gestion étendue de LilyPond,
jetez un oeil au fichier \SpecialChar LyX
jetez un œil au fichier \SpecialChar LyX
d'exemple
\emph on
lilypond.lyx
@ -43618,7 +43711,7 @@ literal "true"
\begin_layout Standard
Voici un sous-document
\emph on
input
input
\emph default
comme \SpecialChar LaTeX
source:
@ -44408,15 +44501,7 @@ nolink "false"
Une liste des listings qui contient tous les listings légendés peut être créée par le menu
\family sans
Insertion\SpecialChar menuseparator
Listes
\begin_inset space ~
\end_inset
&
\begin_inset space ~
\end_inset
TdM\SpecialChar menuseparator
Listes/Matières/Références\SpecialChar menuseparator
Liste des listings
\family default
.

View File

@ -155,6 +155,11 @@ Mise a jour avant la publication de 2.4.0,
11 janvier 2024 (JPC)
\end_layout
\begin_layout Plain Layout
Dernière revue avant la publication de 2.4.0,
25 avril 2024 (JPC)
\end_layout
\end_inset
@ -2797,7 +2802,6 @@ config.log
,
et dites quel compilateur vous utilisez (une partie de cette information se trouve via
\family sans
\lang english
Aide\SpecialChar menuseparator
À propos de LyX
\family default

View File

@ -347,6 +347,25 @@ JPC
)
\end_layout
\begin_layout Plain Layout
Avril 2021 :
revue pour 2.4 (
\nospellcheck on
JPC
\nospellcheck default
)
\end_layout
\begin_layout Plain Layout
26 février 2024 :
dernière revue avant 2.4.0 (JPC)
\end_layout
\begin_layout Plain Layout
26 avril 2024 :
ultimes vérifications avant 2.4.0 (JPC)
\end_layout
\end_inset
@ -795,7 +814,8 @@ Seules les formules en ligne sont autorisées dans les tableaux.
La visibilité de la barre d'outils mathématique se règle avec le menu
\family sans
Affichage\SpecialChar menuseparator
Barres d'outils
Barres d'outils\SpecialChar menuseparator
Math
\family default
.
Trois options sont proposées:
@ -4504,7 +4524,11 @@ F
\begin_layout Plain Layout
\backslash
Lambda^
Lambda
\begin_inset space ~
\end_inset
^
\begin_inset space \textvisiblespace{}
\end_inset
@ -7001,7 +7025,7 @@ arraystretch
\begin_layout Standard
Pour insérer une petite matrice dans une ligne de texte,
on eut également utiliser la commande
on peut également utiliser la commande
\series bold
\backslash
@ -16233,6 +16257,10 @@ C=D
\end_inset
\begin_inset VSpace smallskip
\end_inset
\end_layout
\begin_layout Standard
@ -29492,7 +29520,7 @@ La fonction modulo est un peu spéciale,
\end_layout
\begin_layout Standard
Les variantes pour une formule hors ligne
Les variantes pour une formule en ligne
\begin_inset space ~
\end_inset
@ -29670,7 +29698,7 @@ b
\begin_inset VSpace defskip
\end_inset
Dans une formule en ligne,
Dans une formule hors ligne,
il y a plus d'espace inséré avant les noms de fonction,
sauf
\series bold
@ -34503,18 +34531,7 @@ N
\family default
).
Le numéro de la formule est affiché dans \SpecialChar LyX
après la formule sous la forme d'un dièse entre parenthèse
\begin_inset Foot
status collapsed
\begin_layout Plain Layout
En anglais le dièse est le symbole du numéro (NdT).
\end_layout
\end_inset
.
Le dièse est remplacé dans la sortie finale par le numéro de la formule entre parenthèses.
après la formule sous la forme d'un numéro entre parenthèses.
\end_layout
\begin_layout Standard

View File

@ -68,6 +68,7 @@
\suppress_date false
\justification true
\use_refstyle 0
\use_formatted_ref 0
\use_minted 0
\use_lineno 0
\index Index
@ -234,6 +235,11 @@ Mise à jour pour 2.4.0,
JPC 23/04/2021 - Modification des référencements aux modèles et aux exemples
\end_layout
\begin_layout Plain Layout
Dernière revue avant 2.4.0,
JPC 26/04/2024
\end_layout
\end_inset
@ -2468,11 +2474,11 @@ Article
Voici une liste très succincte de quelques classes de document.
Voyez la section
\emph on
Classes de document spéciales
Classes de document
\emph default
du manuel d'
du manuel des
\emph on
Options
Options
\begin_inset space ~
\end_inset
@ -4885,9 +4891,6 @@ Fractions
\end_layout
\begin_layout Standard
\begin_inset Formula $\frac{}{}$
\end_inset
Pour créer une fraction,
cliquez sur le bouton
\family sans

View File

@ -1001,7 +1001,7 @@ nolink "false"
\end_inset
).
Vous pouvez également ajouter vos propres modèles à cette liste en engesgistrant un fichier \SpecialChar LyX
Vous pouvez également ajouter vos propres modèles à cette liste en enregistrant un fichier \SpecialChar LyX
via
\family sans
Fichier\SpecialChar menuseparator
@ -1953,7 +1953,7 @@ F3
\family default
(ou
\family sans
Maj+Entréee
Maj+Entrée
\family default
ou le raccourci
\family sans
@ -3881,7 +3881,7 @@ Il y a aussi quelques classes non standard,
En voici quelques-unes,
la liste complète avec des explications détaillées se trouve au chapitre
\emph on
Classes Spéciales de Documents
Classes de Documents
\emph default
dans le manuel
\emph on
@ -3896,18 +3896,6 @@ A&A articles de publications dans le style et le format utilisés par
Astronomy & Astrophysics;
\end_layout
\begin_layout Description
ACS articles de publications dans le style et le format utilisés par l'
\lang english
American Chemistry Society;
\end_layout
\begin_layout Description
AGU articles de publications dans le style et le format utilisés par l'
\lang english
American Geophysical Union;
\end_layout
\begin_layout Description
AMS articles de publications et livres dans le style et le format utilisés par l'AMS (
\lang english
@ -3960,7 +3948,7 @@ vitae classe utile pour écrire un curriculum vitæ;
\end_layout
\begin_layout Description
Elsarticle disposition pour les revues publiées par le groupe Elsevier;
Elsevier disposition pour les revues publiées par le groupe Elsevier;
\end_layout
\begin_layout Description
@ -3975,20 +3963,6 @@ Hollywood utilisé pour taper des scripts pour l'industrie cinématographique de
;
\end_layout
\begin_layout Description
IEEEtran disposition pour les journaux publiés par l'IEEE (
\lang english
Institute of Electrical and Electronics Engineers);
\end_layout
\begin_layout Description
IOP disposition pour les journaux publiés par l'IOP (Institute of Physics);
\end_layout
\begin_layout Description
Kluwer disposition pour les revues publiées par le groupe Kluwer.
\end_layout
\begin_layout Description
KOMA-Script remplace les classes standard,
en offrant de nombreuses fonctions intéressantes comme le formatage des légendes,
@ -4028,18 +4002,6 @@ Optical Society of America
Slides sert à faire des transparents pour des présentations;
\end_layout
\begin_layout Description
SPIE
\begin_inset space ~
\end_inset
Proceedings disposition pour les journaux publiés par SPIE (
\lang english
The International Society for Optical Engineering
\lang french
);
\end_layout
\begin_layout Description
Springer disposition pour les revues publiés par le groupe Springer.
\end_layout
@ -4057,7 +4019,7 @@ avancées
,
chapitre
\emph on
Classes de document spéciales
Classes de document
\emph default
.
Ici,
@ -4073,7 +4035,15 @@ Vous remarquerez probablement que de nombreuses classes énumérées par le menu
\family sans
Document\SpecialChar menuseparator
Paramètres\SpecialChar menuseparator
Classes de document
Classes
\begin_inset space ~
\end_inset
de
\begin_inset space ~
\end_inset
document
\begin_inset Index idx
range none
pageformat default
@ -4115,13 +4085,7 @@ Indisponibles
Tout va bien.
\SpecialChar LyX
inclut beaucoup plus de classes que vous n'utiliserez jamais,
et certaines d'entre elles,
comme
\family sans
IOP
\family default
,
sont très spécialisées.
et certaines d'entre elles sont très spécialisées.
\SpecialChar LyX
essaie de reconnaître des documents aussi variés que possible,
et il inclut une centaine de fichiers de format,
@ -4182,8 +4146,7 @@ Bien que \SpecialChar LyX
et nombreux sont ceux qui l'ont fait.
Le chapitre
\emph on
Installer de nouvelles classes de document,
formats et modèles
Installer de nouvelles classes
\emph default
du manuel de
\emph on
@ -16156,7 +16119,7 @@ L'option
\family sans
Active les fonctionnalités micro-typographiques
\family default
active les fonctionnalités micro-typographiques via the paquetage \SpecialChar LaTeX
active les fonctionnalités micro-typographiques via le paquetage \SpecialChar LaTeX
\series bold
microtype
@ -16199,7 +16162,7 @@ status collapsed
\begin_layout Plain Layout
Ou des macros \SpecialChar LaTeX
,
si lme caractère littéral n'est pas connu dans l'encodage d'enrée de \SpecialChar LaTeX
si le caractère littéral n'est pas connu dans l'encodage d'enrée de \SpecialChar LaTeX
.
\end_layout
@ -16999,7 +16962,7 @@ Style de texte personnalisé
\begin_layout Standard
Pour les besoins de la démonstration,
nois avons chargé dans le présent document la module optionnel
nous avons chargé dans le présent document la module optionnel
\family sans
Balisage logique
\family default
@ -19997,7 +19960,7 @@ signe moins
\end_layout
\begin_layout Standard
Voir aussi l'entrée Wikipedia conscrée aux
Voir aussi l'entrée Wikipédia consacrée aux
\begin_inset CommandInset href
LatexCommand href
name "tirets"
@ -20362,9 +20325,9 @@ tirets ligaturés
à chasse fixe
\family default
);
les tirets saisis consécutivement sont fusionnés en caractères immédiatement après la saisie (sauf si la police courant est à chasse fixe)
les tirets saisis consécutivement sont fusionnés en caractères immédiatement après la saisie (sauf si la police courante est à chasse fixe)
\begin_inset Foot
status collapsed
status open
\begin_layout Plain Layout
Ce comportement a été modifié lorsque
@ -20383,7 +20346,7 @@ lyx help
\begin_inset Quotes crd
\end_inset
en dans les sorties PDF,
dans les sorties PDF,
Postscript,
et DVI.
Une conséquence imprévue de ces changements fut que tous les tirets étaient convertis en tirets insécables.
@ -22285,7 +22248,7 @@ Extérieur
\begin_inset space ~
\end_inset
and
et
\begin_inset space ~
\end_inset
@ -22323,7 +22286,7 @@ ces intérieurs
\family default
(usuels en Israel)
(usuels en Israël)
\end_layout
\begin_layout Standard
@ -27430,7 +27393,7 @@ Légendes
\begin_layout Standard
Il est recommandé d'insérer les flottants comme des paragraphes séparés pour éviter des erreurs avec \SpecialChar LaTeX
,
quand le texte qui entoure le flottant est formatté de façon particulière.
quand le texte qui entoure le flottant est formaté de façon particulière.
\end_layout
\begin_layout Subsection
@ -27492,7 +27455,7 @@ arg "float-insert figure"
\end_inset
de la barre d'outils.
L'image a été insérée en positionnant le curseur au(-dessus de la légende et en utilisant le menu
L'image a été insérée en positionnant le curseur au dessus de la légende et en utilisant le menu
\family sans
Insertion\SpecialChar menuseparator
Graphique/image
@ -30192,7 +30155,7 @@ Insertion
crochets et accolades associées) peuvent être saisies via les raccourcis clavier.
Par exemple,
pour insérer une paire de parenthèses flexibles,
sélectionner la structure à parenthéser et saisir
sélectionner la structure à mettre entre parenthèses et saisir
\begin_inset Info
type "shortcut"
arg "math-delim ( )"
@ -30624,7 +30587,7 @@ Référence à des formules
Pour numéroter une formule,
placez le curseur dedans et utilisez le menu
\family sans
Editer\SpecialChar menuseparator
Édition\SpecialChar menuseparator
Math\SpecialChar menuseparator
Numéroter
\begin_inset space ~
@ -30674,7 +30637,7 @@ arg "math-number-toggle"
Les formules multi-lignes peuvent être numérotées lignes par ligne:
utiliser le menu
\family sans
Editer\SpecialChar menuseparator
Édition\SpecialChar menuseparator
Math\SpecialChar menuseparator
Numéroter
\begin_inset space ~
@ -33126,7 +33089,11 @@ Vous pouvez modifier globalement la mise en forme en insérant dans
\family sans
Document\SpecialChar menuseparator
Paramètres\SpecialChar menuseparator
PréambuleLaTeX
Préambule
\begin_inset space ~
\end_inset
LaTeX
\family default
:
\end_layout
@ -33199,7 +33166,7 @@ Les URL seront césurées sur certains caractères,
\end_layout
\begin_layout Standard
Elels ne seront pas coupées implicitement sur un tiret,
Elles ne seront pas coupées implicitement sur un tiret,
mais vous pouvez changer ce comportement en ajoutant les tirets à
\family sans
Document\SpecialChar menuseparator
@ -34590,7 +34557,7 @@ Depuis sa création,
quelques alternatives ont été développées pour lever certaines de ces limitations.
\SpecialChar LyX
inclut nativement quelques unes d'entre elles et vous permet de sélectionner un processeur particulier.
Vous pouvez ke faire d'une manière générale via
Vous pouvez le faire d'une manière générale via
\family sans
Outils\SpecialChar menuseparator
Préférences\SpecialChar menuseparator
@ -34700,7 +34667,7 @@ biblatex
\begin_layout Standard
Implicitement (avec le
\family sans
Proceseur
Processeur
\family default
choisi dans
\family sans
@ -34978,7 +34945,7 @@ Basic
\end_inset
(BibTeX) sélectionne l'approche implicite par Bib\SpecialChar TeX
sans aucun paquetage additionnel (citations numériques simpoles);
sans aucun paquetage additionnel (citations numériques simples);
\end_layout
\begin_layout Description
@ -35182,7 +35149,7 @@ Quelle que soit la sélection entre auteur-année et auteur-numéro,
Citation
\family default
.
Quelques sélections fournissent d'autres options comme celle de mettre ene majuscules un préfixe de nom comme
Quelques sélections fournissent d'autres options comme celle de mettre en majuscules un préfixe de nom comme
\begin_inset Quotes cld
\end_inset
@ -35382,7 +35349,7 @@ name "subsec:Opening-cited-documents"
\end_inset
Opening cited documents from within \SpecialChar LyX
Ouvrir les documents cités depuis \SpecialChar LyX
\end_layout
@ -35531,7 +35498,7 @@ Parcourir le disque pour les fichiers cités
dans
\family sans
Outils\SpecialChar menuseparator
Préferences\SpecialChar ldots
Préférences\SpecialChar ldots
\SpecialChar menuseparator
Saisie\SpecialChar menuseparator
Contr
@ -35621,7 +35588,7 @@ Conséquences sur la sécurité
\end_layout
\begin_layout Standard
Notez que n'importe quel document (principalment le fichier
Notez que n'importe quel document (principalement le fichier
\begin_inset Flex Code
status collapsed
@ -35631,7 +35598,7 @@ status collapsed
\end_inset
dans ce cas) provenant d'un tiers peut contenir des liens mal intentionnés ou des URL mal formés et nous vous suggérons de ne pas utiliser cette fonctionnalité pour d'autres documents que ceux que vosu avez créés vous-même.
dans ce cas) provenant d'un tiers peut contenir des liens mal intentionnés ou des URL mal formés et nous vous suggérons de ne pas utiliser cette fonctionnalité pour d'autres documents que ceux que vous avez créés vous-même.
\end_layout
\begin_layout Standard
@ -36227,7 +36194,7 @@ Notez qu'en \SpecialChar LaTeX
.
Ceci fonctionne aussi en \SpecialChar LyX
à condition que vous vous assuriez que le caractère n'est pas mis en forme.
à condition que vous vous assuriez que le caractère n'est pas mis en forme.
Pour cette raison,
un vrai caractère @ doit être saisi d'une façon particulière,
voir la section
@ -36338,8 +36305,8 @@ Personnalisée
\family default
.
Dans ce dernier cas,
vous popuvez saisir une macro \SpecialChar LaTeX
valide sans la barre injvers initiale,
vous pouvez saisir une macro \SpecialChar LaTeX
valide sans la barre inverse initiale,
e.g.
une macro personnelle comme
\family typewriter
@ -36843,7 +36810,7 @@ Ensuite,
\family default
.
Cette action explorera tout le document (uniquement le document isolé,
pas le doument maître ou les sous-documents) et insérera une copie de cet index après chaque occurrence du mot précédant l'insert.
pas le document maître ou les sous-documents) et insérera une copie de cet index après chaque occurrence du mot précédant l'insert.
Notez que la casse n'a pas d'importance,
mais que les seuls mots entiers sous la même forme grammaticale sont concernés (ainsi si
\emph on
@ -36911,14 +36878,14 @@ xindy
\SpecialChar LyX
l'utilise implicitement
\lang english
(la variante
\lang french
(la variante
\family sans
texindy
\family default
,
pour autant que ça importe)
\lang french
,
pour autant que ça importe),
sinon il utilise le programme
\family sans
makeindex
@ -39118,7 +39085,7 @@ Utiliser le support pour hyperref
Support
\family default
\lang french
(si le paquetage est déjà chragé par la classe de votre document,
(si le paquetage est déjà chargé par la classe de votre document,
ou par un autre paquetage,
la case à cocher est remplacée par
\family sans
@ -39128,10 +39095,10 @@ Utiliser le support pour hyperref
Personnaliser les options hyperref
\family default
).
Parmi d'autes choses,
Parmi dauges choses,
toutes les références croisées seront transformées en liens dans les sorties DVI et PDF.
Cela signifie que le lecteur de votre document pourra cliquer sur un élément de la table de matières ou sur une référence pour voir la partie du document référencée.
De plus vous pourrez saisir le smétadonnées PDF (comme l'e titre et l'auteur) du document) ou fixer comment le ,lecteur PDF doit ouvrir le document.
De plus vous pourrez saisir les métadonnées PDF (comme l'e titre et l'auteur) du document) ou fixer comment le ,lecteur PDF doit ouvrir le document.
\end_layout
\begin_layout Standard
@ -41177,7 +41144,7 @@ Objets insérés
\begin_inset Preview
\begin_layout Standard
Ceci est un texte encadré
Ceci est un
\begin_inset ERT
status collapsed
@ -41210,7 +41177,7 @@ backgroundcolor "none"
status collapsed
\begin_layout Plain Layout
with rotated
texte tourné
\end_layout
\end_inset
@ -41228,7 +41195,7 @@ status collapsed
et une formule
\begin_inset ERT
status collapsed
status open
\begin_layout Plain Layout
@ -41742,7 +41709,7 @@ emplacer
\end_layout
\begin_layout Standard
Vous pouvez remplacer des éléments fonctionnelelment mis en forme à la place des éléments en accord du document.
Vous pouvez remplacer des éléments fonctionnellement mis en forme à la place des éléments en accord du document.
Des scénarios typiques peuvent être les suivants (parmi de nombreux autres):
\end_layout
@ -41859,7 +41826,7 @@ Il existe une recherche fondée sur les expressions régulières (regexp)
status collapsed
\begin_layout Plain Layout
Une bonne explication de ce que sont les expressions régulières se trouve dans cet article Wikipedia:
Une bonne explication de ce que sont les expressions régulières se trouve dans cet article Wikipédia:
\begin_inset CommandInset href
LatexCommand href
@ -42316,7 +42283,7 @@ status open
\begin_layout Plain Layout
https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/
https://www.lyx.org/trac/export/HEAD/dictionaries/dicts/
\end_layout
\end_inset
@ -42746,7 +42713,7 @@ user
Avec Windows,
vous pouvez choisir au moment de l'installation de \SpecialChar LyX
quels dictionnaires installer,
qui se trouveraont de facto à la bonne place.
qui se trouveront de facto à la bonne place.
\end_layout
\begin_layout Standard
@ -44221,7 +44188,8 @@ DocBook
DraftDVI format DVI natif de \SpecialChar LaTeX
.
Ce format n'est pas approprié si vous avez des caractères spéciaux ou des espaces dans le chemins d'accès ou les noms de fichiers dans votre document.
Lyx utilise ce format de manière interne lors du pré-traitement de l'exportation DVI;
\SpecialChar LyX
utilise ce format de manière interne lors du pré-traitement de l'exportation DVI;
\end_layout
\begin_layout Description
@ -45072,7 +45040,7 @@ Propriétés du texte
\end_layout
\begin_layout Standard
Ce sous-menu propose pluisieurs façons de personnaliser l'apparence des passages de texte.
Ce sous-menu propose plusieurs façons de personnaliser l'apparence des passages de texte.
Vous pouvez
\end_layout
@ -46535,10 +46503,10 @@ Nom
\begin_inset space ~
\end_inset
d'utilisateur insère le nom d'utilsateur tel qu'il est définit dans
d'utilisateur insère le nom dutilisateur tel qu'il est définit dans
\family sans
Outils\SpecialChar menuseparator
Préferences\SpecialChar menuseparator
Préférences\SpecialChar menuseparator
Identit
\family default
é;
@ -46556,7 +46524,7 @@ de
l'utilisateur insère l'adresse email de l'utilisateur telle qu'elle est définie dans
\family sans
Outils\SpecialChar menuseparator
Préferences\SpecialChar menuseparator
Préférences\SpecialChar menuseparator
Identit
\family default
é;
@ -46564,7 +46532,7 @@ Identit
\begin_layout Description
Autre\SpecialChar ldots
ouvre une fenêtre interactive qui vous permet de définir d'autres formats pour les trois types de dates ci-desssu et d'insérer une série d'autres informations.
ouvre une fenêtre interactive qui vous permet de définir d'autres formats pour les trois types de dates ci-dessus et d'insérer une série d'autres informations.
\end_layout
\begin_layout Subsection
@ -49345,7 +49313,6 @@ Inserts personnalisables
\begin_layout Plain Layout
\family sans
\lang english
Insertion\SpecialChar menuseparator
Inserts personnalisables
\end_layout
@ -51579,7 +51546,7 @@ Baltique
8859-13) pour l'estonien,
le letton,
et le lithuanien,
et le lituanien,
c'est un sur-ensemble de l'encodage ISO-8859-4;
\end_layout
@ -51594,7 +51561,7 @@ Baltique
8859-4) (latin 4) pour l'estonien,
le letton,
et le lithuanien,
et le lituanien,
c'est un sous-ensemble de l'encodage ISO-8859-13;
\end_layout
@ -54121,9 +54088,9 @@ La syntaxe des fichiers
\family default
.inc est simple.
Les éléments
Les éléments
\family sans
The Menubar
Menubar
\family default
,
@ -56646,7 +56613,7 @@ droite
\end_inset
gauche:
vous pouvez ici définir comment le mouvement du curseur (avec les flèches) se comporte quand vus écrivez de droite à gaucge=he (e.g;
vous pouvez ici définir comment le mouvement du curseur (avec les flèches) se comporte quand vus écrivez de droite à gauche=he (e.g;
arabe,
hébreu ou farsi).

View File

@ -43961,7 +43961,7 @@ status open
\begin_layout Plain Layout
https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/
https://www.lyx.org/trac/export/HEAD/dictionaries/dicts/
\end_layout
\end_inset

View File

@ -37281,7 +37281,7 @@ status collapsed
\begin_layout Plain Layout
https://www.lyx.org/trac/export/HEAD/lyxsvn/dictionaries/trunk/dicts/
https://www.lyx.org/trac/export/HEAD/dictionaries/dicts/
\end_layout
\end_inset

View File

@ -1805,7 +1805,7 @@ Liste des tableaux
est accessible via
\family sans
Insertion\SpecialChar menuseparator
Listes & TdM
Listes/Matières/TdM
\family default
(il y a deux occurrences dans le menu,
c'est la seconde qui est la bonne en principe

View File

@ -2354,7 +2354,16 @@ contributors = [
"",
"",
"",
u"bug reports and small fixes") ]
u"bug reports and small fixes"),
contributor(u"Jiaxu Zi",
"3119932298 () qq ! com",
"GPL",
"Re: Update zh_CN Translation",
"m=171281941029208",
"10 April 2024",
u"Chinese translation") ]
if __name__ == "__main__":

View File

@ -22,12 +22,12 @@ ro sr
(30.11.2017, LyX 2.3.0 release )
Additionally to the top ones, these languages should be reviewed for the following strings
"List of Listings"
da fi gl he ko nb nn pl ro sl sr tr zh_CN zh_TW
da fi gl ko nb nn pl ro sl sr tr zh_CN zh_TW
"Nomenclature[[output]]" -> The string that is output to PDF for the nomenclature list
"see equation[[nomencl]]"
"page[[nomencl]]"
da fi gl he ko nb nn pl ro sl sr tr zh_CN zh_TW
da fi gl ko nb nn pl ro sl sr tr zh_CN zh_TW
-----
LyX 2.4.0 release
@ -35,7 +35,7 @@ LyX 2.4.0 release
"Notes[[Endnotes]]" -> The header string of endnotes (with "Endnotes (Basic)" and "Footnotes as Endnotes
(Basic)" modules). This is to be distinguished from "Notes" used by the Notes inset (which is more an
annotation than a list of (end)notes)
ar el en eu fi he hu nb nl nn pl sv tr zh_CN zh_TW
ar el en eu fi hu nb nl nn pl sv tr zh_CN zh_TW
Note that the localized enotez package has the following translations that probably should be used:
Croatian: Bilje\v{s}ke
French: Remarques

View File

@ -27,4 +27,5 @@
</screenshot>
</screenshots>
<update_contact>lyx-devel_AT_lists.lyx.org</update_contact>
<url type="homepage">https://www.lyx.org</url>
</component>

2000
po/ar.po

File diff suppressed because it is too large Load Diff

2055
po/bg.po

File diff suppressed because it is too large Load Diff

1023
po/cs.po

File diff suppressed because it is too large Load Diff

1970
po/en.po

File diff suppressed because it is too large Load Diff

2020
po/es.po

File diff suppressed because it is too large Load Diff

2019
po/eu.po

File diff suppressed because it is too large Load Diff

2009
po/fi.po

File diff suppressed because it is too large Load Diff

BIN
po/fr.gmo

Binary file not shown.

1359
po/fr.po

File diff suppressed because it is too large Load Diff

2004
po/he.po

File diff suppressed because it is too large Load Diff

2011
po/hu.po

File diff suppressed because it is too large Load Diff

2003
po/ia.po

File diff suppressed because it is too large Load Diff

2000
po/id.po

File diff suppressed because it is too large Load Diff

2000
po/it.po

File diff suppressed because it is too large Load Diff

BIN
po/ja.gmo

Binary file not shown.

2000
po/ja.po

File diff suppressed because it is too large Load Diff

2020
po/nb.po

File diff suppressed because it is too large Load Diff

2000
po/nl.po

File diff suppressed because it is too large Load Diff

2008
po/nn.po

File diff suppressed because it is too large Load Diff

2010
po/pl.po

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

2000
po/ru.po

File diff suppressed because it is too large Load Diff

2018
po/sv.po

File diff suppressed because it is too large Load Diff

2000
po/uk.po

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -292,26 +292,6 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
if (!target_inset->insetAllowed(inset->lyxCode()))
tmpbuf->eraseChar(i--, false);
}
if (lyxrc.ct_markup_copied) {
// Only remove deleted text and change
// the rest to inserted if ct is active,
// otherwise leave markup as is
if (buffer.params().track_changes) {
if (tmpbuf->size() > 0) {
if (!isFullyDeleted(insertion))
tmpbuf->acceptChanges(0, tmpbuf->size());
else
tmpbuf->rejectChanges(0, tmpbuf->size());
}
tmpbuf->setChange(Change(Change::INSERTED));
}
} else
// Resolve all markup to inserted or unchanged
// Deleted text has already been removed on copy
// (copySelectionHelper)
tmpbuf->setChange(Change(buffer.params().track_changes ?
Change::INSERTED : Change::UNCHANGED));
}
bool const target_empty = pars[pit].empty();
@ -495,6 +475,31 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
}
insertion.swap(in.paragraphs());
// We need to do this here, after the inset handling above,
// as acceptChanges() and rejectChanges() might access inset buffers.
tmpbuf = insertion.begin();
for (; tmpbuf != insertion.end(); ++tmpbuf) {
if (lyxrc.ct_markup_copied) {
// Only remove deleted text and change
// the rest to inserted if ct is active,
// otherwise leave markup as is
if (buffer.params().track_changes) {
if (tmpbuf->size() > 0) {
if (!isFullyDeleted(insertion))
tmpbuf->acceptChanges(0, tmpbuf->size());
else
tmpbuf->rejectChanges(0, tmpbuf->size());
}
tmpbuf->setChange(Change(Change::INSERTED));
}
} else
// Resolve all markup to inserted or unchanged
// Deleted text has already been removed on copy
// (copySelectionHelper)
tmpbuf->setChange(Change(buffer.params().track_changes ?
Change::INSERTED : Change::UNCHANGED));
}
// Split the paragraph for inserting the buf if necessary.
if (!target_empty)
breakParagraphConservative(buffer.params(), pars, pit, pos);

View File

@ -22,9 +22,12 @@
#include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h"
#include "support/lstrings.h"
#include "support/Package.h"
#include "frontends/alert.h"
using namespace std;
using namespace lyx::support;
@ -35,7 +38,7 @@ namespace lyx {
LaTeXPackages::Packages LaTeXPackages::packages_;
void LaTeXPackages::getAvailable()
void LaTeXPackages::getAvailable(bool retry)
{
Lexer lex;
support::FileName const real_file = libFileSearch("", "packages.lst");
@ -73,10 +76,40 @@ void LaTeXPackages::getAvailable()
}
}
// Check if the pkglist has current format.
// Reconfigure and re-parse if not.
// Reconfigure once and re-parse if not.
if (lstformat != "2") {
// If we have already reconfigured, check if there is an outdated config file
// which produces the outdated lstformat
if (retry) {
// check if we have an outdated chkconfig.ltx file in user dir
support::FileName chkconfig = fileSearch(addPath(package().user_support().absFileName(), ""),
"chkconfig.ltx", string(), must_exist);
if (chkconfig.empty()) {
// nothing found. So we can only warn
frontend::Alert::warning(_("Invalid package list format!"),
_("The format of your LaTeX packages list is wrong. Please file a bug report."));
return;
}
// Found. Try to rename and warn.
support::FileName chkconfig_bak;
chkconfig_bak.set(chkconfig.absFileName() + ".bak");
if (chkconfig.renameTo(chkconfig_bak))
// renaming succeeded
frontend::Alert::warning(_("Outdated configuration script detected!"),
_("We have detected an outdated script 'chkconfig.ltx' in your user directory.\n"
"The script has been renamed to 'chkconfig.ltx.bak'.\n"
"If you did not copy the script there by purpose, you can safely delete it."));
else {
// renaming failed
frontend::Alert::warning(_("Outdated configuration script detected!"),
bformat(_("We have detected an outdated script 'chkconfig.ltx' in your user directory\n"
"(%1$s).\n"
"Please delete or update this file!"), from_utf8(chkconfig.absFileName())));
return;
}
}
package().reconfigureUserLyXDir("");
getAvailable();
getAvailable(true);
}
}

View File

@ -25,7 +25,7 @@ namespace lyx {
class LaTeXPackages {
public:
/// Which of the required packages are installed?
static void getAvailable();
static void getAvailable(bool retry = false);
/// Is the (required) package available?
static bool isAvailable(std::string const & name);
/// Is the (required) package available at least as of

View File

@ -3466,7 +3466,7 @@ void LyXAction::init()
* \var lyx::FuncCode lyx::LFUN_QUOTE_INSERT
* \li Action: Inserts quotes according to the type and quote-language preference.
* \li Notion: Currently 15 different quote styles are distinguished (see params).
* \li Syntax: quote-insert [<LEVEL>] [<SIDE>] [<STYLE>]
* \li Syntax: quote-insert [<LEVEL>] [<SIDE> <STYLE>]
* \li Params: <LEVEL>: 'inner' for (i.e., secondary, usually single) quotes, otherwise
* outer (i.e., primary, usually double) quotes will be used.\n
* <SIDE>: 'opening' for opening quotes, 'closing' for closing quotes,

View File

@ -5961,7 +5961,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
// Argument?
if (!arg.empty()) {
if (isStrUnsignedInt(arg)) {
num = convert<uint>(arg);
num = convert<unsigned int>(arg);
if (num >= freeFonts.size()) {
cur.message(_("Invalid argument (number exceeds stack size)!"));
break;

View File

@ -2050,8 +2050,14 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
size_t const nrows = pm.rows().size();
int const wh = bv_->workHeight();
// Remember left and right margin for drawing math numbers
Changer changeleft = changeVar(pi.leftx, x + leftMargin(pit));
Changer changeright = changeVar(pi.rightx, x + width() - rightMargin(pit));
Changer changeleft, changeright;
if (text_->isRTL(pit)) {
changeleft = changeVar(pi.leftx, x + rightMargin(pit));
changeright = changeVar(pi.rightx, x + width() - leftMargin(pit));
} else {
changeleft = changeVar(pi.leftx, x + leftMargin(pit));
changeright = changeVar(pi.rightx, x + width() - rightMargin(pit));
}
// Use fast lane in nodraw stage.
if (pi.pain.isNull()) {
@ -2100,9 +2106,6 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
}
}
if (text_->isRTL(pit))
swap(pi.leftx, pi.rightx);
BookmarksSection::BookmarkPosList bpl =
theSession().bookmarks().bookmarksInPar(bv_->buffer().fileName(), pm.id());

View File

@ -31,6 +31,7 @@
#include "support/gettext.h"
#include "support/lstrings.h"
#include <QDate>
using namespace std;
using namespace lyx::support;

View File

@ -190,6 +190,16 @@ static void setComboxFont(QComboBox * cb, string const & family,
}
static void activatePrefsWindow(GuiPreferences * form_)
{
if (guiApp->platformName() == "cocoa") {
QWidget * dialog_ = form_->asQWidget();
dialog_->raise();
dialog_->activateWindow();
}
}
/////////////////////////////////////////////////////////////////////
//
// PrefOutput
@ -1783,6 +1793,7 @@ void PrefConverters::on_needauthCB_toggled(bool checked)
int ret = frontend::Alert::prompt(
_("SECURITY WARNING!"), _("Unchecking this option has the effect that potentially harmful converters would be run without asking your permission first. This is UNSAFE and NOT recommended, unless you know what you are doing. Are you sure you would like to proceed? The recommended and safe answer is NO!"),
0, 0, _("&No"), _("&Yes"));
activatePrefsWindow(form_);
if (ret == 1)
changed();
else
@ -2148,6 +2159,7 @@ void PrefFileformats::on_formatED_editingFinished()
_("You cannot change a format's short name "
"if the format is used by a converter. "
"Please remove the converter first."));
activatePrefsWindow(form_);
updateView();
return;
}
@ -2303,6 +2315,7 @@ void PrefFileformats::on_formatRemovePB_clicked()
Alert::error(_("Format in use"),
_("Cannot remove a Format used by a Converter. "
"Remove the converter first."));
activatePrefsWindow(form_);
return;
}
@ -2551,12 +2564,14 @@ void PrefUserInterface::applyRC(LyXRC & rc) const
uiStyleCO->currentIndex()).toString();
if (rc.ui_style != fromqstr(uistyle)) {
rc.ui_style = fromqstr(uistyle);
if (rc.ui_style == "default")
if (rc.ui_style == "default") {
// FIXME: This should work with frontend::GuiApplication::setStyle(QString())
// Qt bug https://bugreports.qt.io/browse/QTBUG-58268
frontend::Alert::warning(_("Restart needed"),
_("Resetting the user interface style to 'Default'"
" requires a restart of LyX."));
activatePrefsWindow(form_);
}
else
frontend::GuiApplication::setStyle(uistyle);
}
@ -3312,6 +3327,7 @@ bool PrefShortcuts::validateNewShortcut(FuncRequest const & func,
if (func.action() == LFUN_UNKNOWN_ACTION) {
Alert::error(_("Failed to create shortcut"),
_("Unknown or invalid LyX function"));
activatePrefsWindow(form_);
return false;
}
@ -3321,12 +3337,14 @@ bool PrefShortcuts::validateNewShortcut(FuncRequest const & func,
if (lyxaction.getActionType(func.action()) == LyXAction::Hidden) {
Alert::error(_("Failed to create shortcut"),
_("This LyX function is hidden and cannot be bound."));
activatePrefsWindow(form_);
return false;
}
if (k.length() == 0) {
Alert::error(_("Failed to create shortcut"),
_("Invalid or empty key sequence"));
activatePrefsWindow(form_);
return false;
}
@ -3343,6 +3361,7 @@ bool PrefShortcuts::validateNewShortcut(FuncRequest const & func,
k.print(KeySequence::ForGui), new_action_string);
int ret = Alert::prompt(_("Redefine shortcut?"),
text, 0, 1, _("&Redefine"), _("&Cancel"));
activatePrefsWindow(form_);
if (ret != 0)
return false;
QString const sequence_text = toqstr(k.print(KeySequence::ForGui));
@ -3366,6 +3385,7 @@ bool PrefShortcuts::validateNewShortcut(FuncRequest const & func,
new_action_string);
int ret = Alert::prompt(_("Redefine shortcut?"),
text, 0, 1, _("&Redefine"), _("&Cancel"));
activatePrefsWindow(form_);
if (ret != 0)
return false;
QString const sequence_text = toqstr(k.print(KeySequence::ForGui));
@ -3408,6 +3428,7 @@ void PrefShortcuts::shortcutOkPressed()
} else {
Alert::error(_("Failed to create shortcut"),
_("Can not insert shortcut to the list"));
activatePrefsWindow(form_);
return;
}
}
@ -3646,11 +3667,7 @@ QString GuiPreferences::browseLibFile(QString const & dir,
guilyxfiles_->selectItem(name);
guilyxfiles_->exec();
if (frontend::guiApp->platformName() == "cocoa") {
QWidget * dialog_ = asQWidget();
dialog_->raise();
dialog_->activateWindow();
}
activatePrefsWindow(this);
QString const result = uifile_;

View File

@ -1498,10 +1498,12 @@ QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
return QVariant(d->im_cursor_rect_);
break;
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
case Qt::ImAnchorRectangle: {
return QVariant(d->im_anchor_rect_);
break;
}
#endif
default:
return QWidget::inputMethodQuery(query);
}

View File

@ -362,6 +362,7 @@ static void build_script(string const & doc_fname,
string const token_base = "$$b";
string const token_to = "$$o";
string const token_todir = "$$d";
string const token_python = "$${python}";
EdgePath::const_iterator it = edgepath.begin();
EdgePath::const_iterator end = edgepath.end();
@ -405,6 +406,7 @@ static void build_script(string const & doc_fname,
command = subst(command, token_base, "' + '\"' + infile_base + '\"' + '");
command = subst(command, token_to, "' + '\"' + outfile + '\"' + '");
command = subst(command, token_todir, "' + '\"' + outdir + '\"' + '");
command = subst(command, token_python, os::python());
build_conversion_command(command, script);
}

View File

@ -569,7 +569,7 @@ docstring InsetCommandParams::prepareCommand(OutputParams const & runparams,
}
docstring InsetCommandParams::getCommand(OutputParams const & runparams, bool starred) const
docstring InsetCommandParams::getCommand(OutputParams const & runparams, bool starred, bool unhandled) const
{
docstring s = '\\' + from_ascii(cmdName_);
if (starred)
@ -579,20 +579,23 @@ docstring InsetCommandParams::getCommand(OutputParams const & runparams, bool st
ParamInfo::const_iterator end = info_.end();
for (; it != end; ++it) {
std::string const & name = it->name();
ParamInfo::ParamHandling handling = unhandled ?
ParamInfo::HANDLING_NONE
: it->handling();
switch (it->type()) {
case ParamInfo::LYX_INTERNAL:
break;
case ParamInfo::LATEX_REQUIRED: {
docstring const data =
prepareCommand(runparams, (*this)[name], it->handling());
prepareCommand(runparams, (*this)[name], handling);
s += '{' + data + '}';
noparam = false;
break;
}
case ParamInfo::LATEX_OPTIONAL: {
docstring data =
prepareCommand(runparams, (*this)[name], it->handling());
prepareCommand(runparams, (*this)[name], handling);
if (!data.empty()) {
s += '[' + protectArgument(data) + ']';
noparam = false;

View File

@ -136,7 +136,7 @@ public:
///
void Write(std::ostream & os, Buffer const * buf) const;
/// Build the complete LaTeX command
docstring getCommand(OutputParams const &, bool starred = false) const;
docstring getCommand(OutputParams const &, bool starred = false, bool unhandled = false) const;
/// Return the command name
std::string const & getCmdName() const { return cmdName_; }
/// Set the name to \p n. This must be a known name. All parameters

View File

@ -180,10 +180,9 @@ bool translateString(docstring const & in, docstring & out, string const & lcode
out = translateIfPossible(in, lcode);
return in != out;
}
} // namespace anon
docstring InsetInfoParams::getDate(string const & iname, QDate const date) const
docstring getDate(string const & iname, QDate const date, Language const * lang)
{
QLocale loc;
if (lang)
@ -208,7 +207,7 @@ docstring InsetInfoParams::getDate(string const & iname, QDate const date) const
}
docstring InsetInfoParams::getTime(string const & iname, QTime const time) const
docstring getTime(string const & iname, QTime const time, Language const * lang)
{
QLocale loc;
if (lang)
@ -222,6 +221,7 @@ docstring InsetInfoParams::getTime(string const & iname, QTime const time) const
else
return qstring_to_ucs4(loc.toString(time, toqstr(iname)));
}
} // namespace anon
vector<pair<string,docstring>> InsetInfoParams::getArguments(Buffer const * buf,
@ -313,17 +313,17 @@ vector<pair<string,docstring>> InsetInfoParams::getArguments(Buffer const * buf,
date = (gdate.isValid()) ? gdate : QDate::currentDate();
} else
date = QDate::currentDate();
result.push_back(make_pair("long",getDate("long", date)));
result.push_back(make_pair("short", getDate("short", date)));
result.push_back(make_pair("loclong", getDate("loclong", date)));
result.push_back(make_pair("locmedium", getDate("locmedium", date)));
result.push_back(make_pair("locshort", getDate("locshort", date)));
result.push_back(make_pair("ISO", getDate("ISO", date)));
result.push_back(make_pair("yyyy", getDate("yyyy", date)));
result.push_back(make_pair("MMMM", getDate("MMMM", date)));
result.push_back(make_pair("MMM", getDate("MMM", date)));
result.push_back(make_pair("dddd", getDate("dddd", date)));
result.push_back(make_pair("ddd", getDate("ddd", date)));
result.push_back(make_pair("long",getDate("long", date, lang)));
result.push_back(make_pair("short", getDate("short", date, lang)));
result.push_back(make_pair("loclong", getDate("loclong", date, lang)));
result.push_back(make_pair("locmedium", getDate("locmedium", date, lang)));
result.push_back(make_pair("locshort", getDate("locshort", date, lang)));
result.push_back(make_pair("ISO", getDate("ISO", date, lang)));
result.push_back(make_pair("yyyy", getDate("yyyy", date, lang)));
result.push_back(make_pair("MMMM", getDate("MMMM", date, lang)));
result.push_back(make_pair("MMM", getDate("MMM", date, lang)));
result.push_back(make_pair("dddd", getDate("dddd", date, lang)));
result.push_back(make_pair("ddd", getDate("ddd", date, lang)));
result.push_back(make_pair("custom", _("Custom")));
break;
}
@ -344,9 +344,9 @@ vector<pair<string,docstring>> InsetInfoParams::getArguments(Buffer const * buf,
time = (gtime.isValid()) ? gtime : QTime::currentTime();
} else
time = QTime::currentTime();
result.push_back(make_pair("long",getTime("long", time)));
result.push_back(make_pair("short", getTime("short", time)));
result.push_back(make_pair("ISO", getTime("ISO", time)));
result.push_back(make_pair("long",getTime("long", time, lang)));
result.push_back(make_pair("short", getTime("short", time, lang)));
result.push_back(make_pair("ISO", getTime("ISO", time, lang)));
result.push_back(make_pair("custom", _("Custom")));
break;
}
@ -1239,7 +1239,7 @@ void InsetInfo::build()
date = QDate::fromString(toqstr(date_specifier), Qt::ISODate);
else
date = QDate::currentDate();
setText(params_.getDate(date_format, date), params_.lang);
setText(getDate(date_format, date, params_.lang), params_.lang);
break;
}
case InsetInfoParams::TIME_INFO:
@ -1261,7 +1261,7 @@ void InsetInfo::build()
time = QTime::fromString(toqstr(time_specifier), Qt::ISODate);
else
time = QTime::currentTime();
setText(params_.getTime(time_format, time), params_.lang);
setText(getTime(time_format, time, params_.lang), params_.lang);
break;
}
}
@ -2054,7 +2054,7 @@ docstring InsetInfo::xhtml(XMLStream & xs, OutputParams const & rp) const
std::tie(date, date_format) = parseDate(buffer(), params_);
xml::openTag(xs, "span", std::string("class=\"infodate-") + cssClass + "\"", "inline");
xs << params_.getDate(date_format, date);
xs << getDate(date_format, date, params_.lang);
xml::closeTag(xs, "span", "inline");
break;
}
@ -2083,7 +2083,7 @@ docstring InsetInfo::xhtml(XMLStream & xs, OutputParams const & rp) const
std::tie(time, time_format) = parseTime(buffer(), params_);
xml::openTag(xs, "span", std::string("class=\"infotime-") + cssClass + "\"", "inline");
xs << params_.getTime(time_format, time);
xs << getTime(time_format, time, params_.lang);
xml::closeTag(xs, "span", "inline");
break;
}

View File

@ -13,7 +13,6 @@
#define INSET_INFO_H
#include "InsetCollapsible.h"
#include <QDate>
namespace lyx {
@ -139,10 +138,6 @@ public:
UNKNOWN_INFO, // Invalid type
};
///
docstring getDate(std::string const &, QDate const date = QDate::currentDate()) const;
///
docstring getTime(std::string const &, QTime const time = QTime::currentTime()) const;
///
std::vector<std::pair<std::string,docstring>> getArguments(Buffer const * buf,
std::string const &) const;
///

View File

@ -200,7 +200,7 @@ public:
///
bool docbookrenderasimage() const { return docbookrenderasimage_; }
///
std::set<std::string> required() const { return required_; }
std::set<std::string> required() const & { return required_; }
///
bool isMultiPar() const { return multipar_; }
///

View File

@ -141,6 +141,11 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd)
switch (cmd.action()) {
case LFUN_INSET_MODIFY: {
if (cmd.getArg(0) != "note") {
// not for us; might be handled higher up
cur.undispatched();
return;
}
// Do not do anything if converting to the same type of Note.
// A quick break here is done instead of disabling the LFUN
// because disabling the LFUN would lead to a greyed out
@ -150,7 +155,7 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd)
InsetNoteParams params;
string2params(to_utf8(cmd.argument()), params);
if (params_.type == params.type)
break;
break;
cur.recordUndoInset(this);
string2params(to_utf8(cmd.argument()), params_);

View File

@ -4114,7 +4114,7 @@ string MatchStringAdv::convertLF2Space(docstring const &s, bool ignore_format) c
static string showPos(DocIterator const & cur)
{
stringstream a;
a << "[idx(" << cur.idx() << "),pit(" << cur.pit() << "),pos(" << cur.pos() << "),depth(" << cur.depth() << ")]";
a << "[idx(" << cur.idx() << "),pit(" << cur.pit() << "),pos(" << cur.pos() << "),depth(" << cur.depth() << ")]";
return(a.str());
}

View File

@ -76,7 +76,7 @@ void InsetMathRef::doDispatch(Cursor & cur, FuncRequest & cmd)
switch (cmd.action()) {
case LFUN_INSET_MODIFY: {
string const arg0 = cmd.getArg(0);
string const arg1 = cmd.getArg(1);
string const arg1 = cmd.getArg(1);
if (arg0 == "ref") {
if (arg1 == "changetarget") {
string const oldtarget = cmd.getArg(2);
@ -295,25 +295,27 @@ void InsetMathRef::write(TeXMathStream & os) const
LYXERR0("Unassigned buffer_ in InsetMathRef::write!");
LYXERR0("LaTeX output may be wrong!");
}
// are we writing to the LyX file?
if (!os.latex()) {
// if so, then this is easy
InsetMathCommand::write(os);
return;
}
bool const use_refstyle =
buffer_ && buffer().params().use_refstyle;
bool special_case = cmd == "formatted" ||
cmd == "labelonly" ||
(cmd == "eqref" && use_refstyle);
// are we writing to the LyX file or not in a special case?
if (!os.latex() || !special_case) {
// if so, then this is easy
InsetMathCommand::write(os);
return;
}
// we need to translate 'formatted' to prettyref or refstyle-type
// commands and just output the label with labelonly
// most of this is borrowed from InsetRef and should be kept in
// sync with that.
ModeSpecifier specifier(os, currentMode(), lockedMode(), asciiOnly());
MathEnsurer ensurer(os, false);
if (use_refstyle && cmd == "eqref") {
if (!special_case) {
os << from_ascii("\\") << cmd << "{" << cell(0) << from_ascii("}");
}
else if (use_refstyle && cmd == "eqref") {
// we advertise this as printing "(n)", so we'll do that, at least
// for refstyle, since refstlye's own \eqref prints, by default,
// "equation n". if one wants \eqref, one can get it by using a
@ -324,7 +326,7 @@ void InsetMathRef::write(TeXMathStream & os) const
if (!use_refstyle)
os << "\\prettyref{" << cell(0) << "}";
else {
odocstringstream ods;
odocstringstream ods;
// get the label we are referencing
for (auto const & d : cell(0)) {
ods << d;

View File

@ -1463,18 +1463,23 @@ void write(MathData const & dat, TeXMathStream & wi)
void writeString(docstring const & s, TeXMathStream & os)
{
if (!os.latex()) {
os << (os.asciiOnly() ? escape(s) : s);
os << s;
return;
}
else if (os.output() == TeXMathStream::wsSearchAdv) {
os << s;
docstring str = s;
if (os.asciiOnly())
str = escape(s);
if (os.output() == TeXMathStream::wsSearchAdv) {
os << str;
return;
}
if (os.lockedMode()) {
bool space;
docstring cmd;
for (char_type c : s) {
for (char_type c : str) {
try {
Encodings::latexMathChar(c, true, os.encoding(), cmd, space);
os << cmd;
@ -1512,7 +1517,7 @@ void writeString(docstring const & s, TeXMathStream & os)
// We will take care of matching braces.
os.pendingBrace(false);
for (char_type const c : s) {
for (char_type const c : str) {
bool mathmode = in_forced_mode ? os.textMode() : !os.textMode();
docstring command(1, c);
try {

View File

@ -703,7 +703,7 @@ bool createInsetMath_fromDialogStr(docstring const & str, MathData & ar)
InsetCommand::string2params(to_utf8(str), icp);
Encoding const * const utf8 = encodings.fromLyXName("utf8");
OutputParams op(utf8);
mathed_parse_cell(ar, icp.getCommand(op));
mathed_parse_cell(ar, icp.getCommand(op, false, true));
} else if (name == "mathspace") {
InsetSpaceParams isp(true);
InsetSpace::string2params(to_utf8(str), isp);

View File

@ -494,6 +494,9 @@ void TeXEnvironment(Buffer const & buf, Text const & text,
if (pit != runparams.par_end)
LYXERR(Debug::OUTFILE, "TeXEnvironment for paragraph " << par_begin << " done.");
// set upstream encoding
runparams_in.encoding = runparams.encoding;
}