]>
git.lyx.org Git - lyx.git/log
Juergen Spitzmueller [Sat, 25 May 2013 09:48:38 +0000 (11:48 +0200)]
Fix Chinese Tutorial copilation
Jean-Marc Lasgouttes [Wed, 17 Apr 2013 09:30:25 +0000 (11:30 +0200)]
Fix empty width support for Box inset
* InsetBox and GuiBox: Use proper empty length instead of the broken -9.99col% trick
* some slight changes to the logic of GuiBox to make sure that values are set as needed.
* lengthToWidget(): handle properly the empty length case. All the other related Qt helpers did it already, it was probably an oversight. Also set the default_unit parameter as optional (not needed in this patch actually, but I got carried away :)
* allow generating LaTeX code for an empty length, since some broken code does that.
Jean-Marc Lasgouttes [Mon, 15 Apr 2013 10:35:11 +0000 (12:35 +0200)]
Improve support for empty lengths
Parse empty string as empty length
Output empty length as empty string when it makes sense (not for LaTeX strings, for example).
Kornel Benko [Fri, 24 May 2013 08:13:13 +0000 (10:13 +0200)]
* sk.po
Pavel Sanda [Fri, 24 May 2013 05:17:20 +0000 (22:17 -0700)]
Years forgotten files.
Pavel Sanda [Fri, 24 May 2013 05:11:50 +0000 (22:11 -0700)]
Header cleanup cont.
Uwe Stöhr [Thu, 23 May 2013 21:38:18 +0000 (23:38 +0200)]
UserGuide.lyx: finish the revision
- many thanks to John Hudson for his amazing work!
Richard Heck [Thu, 23 May 2013 19:12:03 +0000 (15:12 -0400)]
Update documentation for parser tools a bit.
Georg Baum [Thu, 23 May 2013 20:02:34 +0000 (22:02 +0200)]
Fix autotools build
This typo was introduced in
01add2d52fee .
Georg Baum [Thu, 23 May 2013 20:00:56 +0000 (22:00 +0200)]
Fix layout tests for autotools
This part was forgotten in
6f16814d3b9f .
Richard Heck [Thu, 23 May 2013 14:22:52 +0000 (10:22 -0400)]
Layouts for ACMS SIGS styles, contributed by Gioele Barabucci.
Richard Heck [Thu, 23 May 2013 13:39:16 +0000 (09:39 -0400)]
Whitespace.
Richard Heck [Thu, 23 May 2013 13:25:40 +0000 (09:25 -0400)]
Add support for package options in layout files. E.g.:
PackageOption tipa safe will load tipa with the
"safe" option, if we load it.
Richard Heck [Thu, 23 May 2013 12:58:23 +0000 (08:58 -0400)]
Fix ereg and a typo.
Stephan Witt [Thu, 23 May 2013 05:52:49 +0000 (07:52 +0200)]
fix whitespace: avoid mixed tabs and spaces
Pavel Sanda [Thu, 23 May 2013 02:58:58 +0000 (19:58 -0700)]
Header cleanup cont.
Uwe Stöhr [Wed, 22 May 2013 23:30:28 +0000 (01:30 +0200)]
installer: install some XeTeX requirements
- iftex and xetex-def is in general necessary
- makecmds is necessary for Arabic and Farsi in combination with XeTeX
Uwe Stöhr [Wed, 22 May 2013 23:29:01 +0000 (01:29 +0200)]
chkconfig.ltx: check for some XeTeX requirements
- iftex is necessary for XeTeX with non-Latin scripts
- xetex.def is a separate package on CTAN and necessary for XeTeX and colors and graphics
Uwe Stöhr [Wed, 22 May 2013 23:25:54 +0000 (01:25 +0200)]
UserGuide.lyx: translations
- to fix the mysterious compilation problems on some machines
Vincent van Ravesteijn [Wed, 22 May 2013 06:18:25 +0000 (08:18 +0200)]
Remerge po-files
The po-files are now remerged against the versions in branch. This will slightly reduce the effort needed from the translators.
Uwe Stöhr [Tue, 21 May 2013 21:40:38 +0000 (23:40 +0200)]
French UserGuide.lyx: fix a paragraph language
Uwe Stöhr [Tue, 21 May 2013 21:35:06 +0000 (23:35 +0200)]
UserGuide.lyx: some more revision work
- also the last try to fix Scott's compilations problems
Uwe Stöhr [Tue, 21 May 2013 20:44:15 +0000 (22:44 +0200)]
po-files: copy from branch
- copy the latest versions from branch, except of the languages where we already have LyX 2.1-specific translations.
Uwe Stöhr [Tue, 21 May 2013 19:13:14 +0000 (21:13 +0200)]
UserGuide.lyx: some corrections
- hopefully fix compilation of German UserGuide for Scott
- some German translations
Kornel Benko [Tue, 21 May 2013 17:54:20 +0000 (19:54 +0200)]
Cmake tests: use multiple log files for multiple test-cases
Uwe Stöhr [Tue, 21 May 2013 17:45:47 +0000 (19:45 +0200)]
de.po: some translations
Kornel Benko [Tue, 21 May 2013 17:27:25 +0000 (19:27 +0200)]
* sk.po
Vincent van Ravesteijn [Tue, 21 May 2013 17:04:56 +0000 (19:04 +0200)]
Update layouttranslations
Vincent van Ravesteijn [Tue, 21 May 2013 16:13:46 +0000 (18:13 +0200)]
Remerge po-files
Kornel Benko [Tue, 21 May 2013 11:26:26 +0000 (13:26 +0200)]
Typo
Scott Kostyshak [Tue, 21 May 2013 05:28:26 +0000 (01:28 -0400)]
RJournal.layout: remove unneeded code
Part of this code was moved to the template in a previous commit
and part was removed because it is no longer needed.
Patch by Yihui Xie.
Pavel Sanda [Tue, 21 May 2013 01:47:16 +0000 (18:47 -0700)]
Header cleanup cont.
Uwe Stöhr [Mon, 20 May 2013 23:45:19 +0000 (01:45 +0200)]
UserGuide.lyx: port recent changes to master
Scott Kostyshak [Mon, 20 May 2013 22:50:56 +0000 (18:50 -0400)]
Add autotests for #8684
(these should currently fail)
Vincent van Ravesteijn [Mon, 20 May 2013 12:37:33 +0000 (14:37 +0200)]
Update tex2lyx test cases to format 471
Juergen Spitzmueller [Mon, 20 May 2013 11:40:40 +0000 (13:40 +0200)]
Force encoding switch when switching from/to CJK, even if we use a customized encoding (#8558)
Juergen Spitzmueller [Mon, 20 May 2013 10:31:46 +0000 (12:31 +0200)]
revert parts of
53002538 which set wrong local_font
Juergen Spitzmueller [Mon, 20 May 2013 09:07:47 +0000 (11:07 +0200)]
Handle secondary babel languages when main language is CJK
Uwe Stöhr [Mon, 20 May 2013 01:18:11 +0000 (03:18 +0200)]
installer: update dictionary for Norwegian
Uwe Stöhr [Mon, 20 May 2013 01:16:44 +0000 (03:16 +0200)]
UserGuide.lyx: next revision step
- sec. A.1 - A.2 and a few others
Pavel Sanda [Mon, 20 May 2013 01:07:53 +0000 (18:07 -0700)]
Header cleanup cont.
Vincent van Ravesteijn [Sun, 19 May 2013 20:04:29 +0000 (22:04 +0200)]
Fix zombie toolbars (bug 8520)
If there is a new toolbar, it will not be restored by Qt and we need to
initialize it ourselves. However, it is not so easy to find out which
toolbars are restored by Qt and which are not. For this, the setVisible
function of GuiToolbar is 'misused'. If the visibility is set, the toolbar
must have been restored by Qt and we should leave it alone.
Vincent van Ravesteijn [Sun, 19 May 2013 12:42:27 +0000 (14:42 +0200)]
Fix bug 7673 by reverting changes to BufferView::checkDepm
This reverts commit
210a4406 and a part of
5577e877 .
Uwe Stöhr [Sun, 19 May 2013 16:46:14 +0000 (18:46 +0200)]
installer: really fix splitindex support this time
- for splitindex the installer has to install Perl to MiKTeX but 64bit MiKTeX works with Perl using a different folder structure than 32bit MiKTeX
Vincent van Ravesteijn [Sun, 19 May 2013 12:07:14 +0000 (14:07 +0200)]
Increase the uniqueness of the temp directories
Now, the temporary directories are composed of the PID + 8 random
characters. This used to be the PID + 2 random characters.
See also
327f7ed90dbcaad92511b962a8d1d14b46ef552a .
Vincent van Ravesteijn [Sun, 19 May 2013 11:59:07 +0000 (13:59 +0200)]
Seed Qt's random generator
LyX uses QTemporaryFile to create a unique temporary directory. This
temporary directory will consist of two random characters and the process
identifier (PID).
Currently, the two random characters are often the same because Qt's
random generator was not seeded. If there are a lot of lyx temporary
directories accumulated, the chance of failing to find a unique temporary
directory is (N/100)%.
The temporary directories can be left behind if either LyX crashes, or
when a file in the temporary directory is opened in another viewer when
LyX closes. This can be a pdf that is viewed in a reader that disallows
the file to be removed while viewing it.
Vincent van Ravesteijn [Sun, 19 May 2013 10:39:01 +0000 (12:39 +0200)]
Disallow to insert an inset without a font
Doing so could lead to an assertion in Paragraph::fontSpan.
Vincent van Ravesteijn [Sun, 19 May 2013 10:28:11 +0000 (12:28 +0200)]
Fix assertion: icon in insetinfo without a font
InsetInfos of the type ICON have a graphics Inset in their paragraph.
These insets were inserted without a font. This lead to an assertion in
Paragraph::fontSpan because the fontlist_ of the paragraph is empty.
Vincent van Ravesteijn [Sun, 19 May 2013 10:28:11 +0000 (12:28 +0200)]
Fix assertion: bibitem inset without a font
Move the cursor in front of a bibitem and press enter.
Paragraph::fixBiblio will insert a new bibitem without a font in the new
paragraph. This will make Paragraph::fontSpan assert because the fontlist_
of the new paragraph is empty.
Vincent van Ravesteijn [Sun, 19 May 2013 10:28:11 +0000 (12:28 +0200)]
Fix assertion: label copy-paste-as-ref in new par
Because the reference got inserted without specifying a font,
Paragraph::fontSpan fired an assertion because the fontlist_ is empty.
Vincent van Ravesteijn [Sat, 18 May 2013 15:06:15 +0000 (17:06 +0200)]
Revert "Fix assertion for InsetInfos of icon types"
Using "Font no_font" in case no font was supplied was wrong. Instantiating a font object without specifying the language lead to a font object having the default_language that is hardcoded to "english". See Language::read().
This caused that there were spurious language changes in the LaTeX output
and made some document uncompilable.
This reverts commit
361995459068a5e53b597f1195f7f29522714ec4 .
Uwe Stöhr [Sun, 19 May 2013 01:53:58 +0000 (03:53 +0200)]
landslide.lyx: make it compilable with pdflatex
Uwe Stöhr [Sat, 18 May 2013 18:51:02 +0000 (20:51 +0200)]
AEA.layout: restore a style
- I accidentally deleted this style in previous commit
Uwe Stöhr [Sat, 18 May 2013 18:36:26 +0000 (20:36 +0200)]
AEA.lyx/layout: update templates/AEA.lyx
- make template compilable
- update it according to the latest AEA guidelines
- add 4 missing styles to the layout:
* \keywords
* \JEL
* figurenotes environment
* tablenotes environment
Uwe Stöhr [Sat, 18 May 2013 12:19:54 +0000 (14:19 +0200)]
installer: fix an issue with 64bit MiKTeX
- splitindex did not work when 64bit-MiKTeX was used
Scott Kostyshak [Sat, 18 May 2013 00:54:56 +0000 (20:54 -0400)]
listerrors.lyx: set default output to ps2pdf
ps2pdf dependency is hardcoded in the preamble, which is why
pdflatex and luatex are failing.
Scott Kostyshak [Wed, 8 May 2013 03:14:21 +0000 (23:14 -0400)]
RJournal template now also works with latex
Before, only PDFs were being generated so latex did not compile.
Now, both PDF and EPS files are generated.
This is not efficient but could save the user some pain, which is
the goal of templates.
An alternative would be to set the default output to use pdflatex.
Scott Kostyshak [Wed, 8 May 2013 00:57:42 +0000 (20:57 -0400)]
RJournal: use 'classic' decoration for email inset
This makes it clear that
(1) the emails are in their own insets
(2) the \email command is embedded in the \address command
Scott Kostyshak [Wed, 8 May 2013 02:48:33 +0000 (22:48 -0400)]
RJournal: set ForcePlain to 'true' for email inset
This prevents the user from some mistakes, such as
embedding an itemize or ennumerate environment.
Scott Kostyshak [Wed, 8 May 2013 00:48:28 +0000 (20:48 -0400)]
RJournal: change 'Address' Flex inset into a Style
This looks better and gives natural separation between multiple
authors.
Scott Kostyshak [Wed, 8 May 2013 03:56:50 +0000 (23:56 -0400)]
RJournal: change 'Abstract' from a Flex to a Style
This looks more consistent with other templates to me.
Scott Kostyshak [Wed, 8 May 2013 03:56:24 +0000 (23:56 -0400)]
RJournal template and layout: move ERTs to layout
The layout now takes care of \begin{article} and \end{article}
by using \AtBeginDocument and \AtEndDocument.
This cleans up the template a little by removing some ERT. The
user no longer needs to read the two notes explaining why the
ERT boxes were necessary. The user also does not need to think
about why this LaTeX environment exists.
Scott Kostyshak [Tue, 7 May 2013 23:38:01 +0000 (19:38 -0400)]
RJournal.lyx: hardcoded shortcuts -> insets
This way if the shortcut changes or a user is using
a different bind file, the correct shortcut will appear.
Scott Kostyshak [Tue, 7 May 2013 23:33:15 +0000 (19:33 -0400)]
RJournal.lyx: English tweaks
Scott Kostyshak [Fri, 17 May 2013 02:40:10 +0000 (22:40 -0400)]
Add a layout and template for the R Journal
Patch by Yihui Xie.
Julien Rioux [Thu, 16 May 2013 14:00:54 +0000 (16:00 +0200)]
New \cite_engine_type default.
The default citation capability of LaTeX is not a true numerical
citation engine, rather it uses a mixture of labels/numbers. Thus
we now distinguish them: "numerical" always increments the bibitem
counter and uses its value as a numerical citation label, while
"default" only uses the bibitem counter when no label is provided.
LyX file format incremented to 471.
Julien Rioux [Tue, 14 May 2013 19:51:05 +0000 (21:51 +0200)]
Don't use widest label for numerical citations.
Fixes bug #8513.
Julien Rioux [Tue, 14 May 2013 19:50:13 +0000 (21:50 +0200)]
Compute and output numbers for numerical citations.
Pavel Sanda [Thu, 16 May 2013 05:02:10 +0000 (22:02 -0700)]
Slowly going through the suggestion made by our headers script.
I tried not to kill "redundant" includes which are actually used
in the header, apology for mistakes.
Uwe Stöhr [Wed, 15 May 2013 21:48:23 +0000 (23:48 +0200)]
installer: fix converter for HTML
- fix bug reported on the lyx-devel list that eLyXer could not be invoked if Python is not installed
Pavel Sanda [Wed, 15 May 2013 10:46:04 +0000 (03:46 -0700)]
* header_check.sh: filter headers; we should suspect only .h files.
Pavel Sanda [Wed, 15 May 2013 10:42:13 +0000 (03:42 -0700)]
* header_check.sh: fix error order
Kornel Benko [Wed, 15 May 2013 09:28:04 +0000 (11:28 +0200)]
cmake:
1.) Do not include layout tests on MAC, since the
linker-option which allows multiple definitions is
no longer supported.
2.) Indenting made consistent
Stephan Witt [Wed, 15 May 2013 08:24:22 +0000 (10:24 +0200)]
lyx::support::get_document_dir uses QDesktopServices::storageLocation and this is in QT_QTGUI_LIBRARY
Vincent van Ravesteijn [Wed, 15 May 2013 07:11:25 +0000 (09:11 +0200)]
Add a special regfile for filetools test on windows
Pavel Sanda [Wed, 15 May 2013 07:07:40 +0000 (00:07 -0700)]
* header_check.sh: forgot on exec flag
Pavel Sanda [Wed, 15 May 2013 07:02:16 +0000 (00:02 -0700)]
* header_check.sh: more tweaks
Pavel Sanda [Wed, 15 May 2013 06:59:42 +0000 (23:59 -0700)]
* header_check.sh: Apply new changes from Scott.
I see lot of errors like:
The following string was expected to be '.cpp' or '.h':
LyX.cpp: In member function 'void lyx::LyX::printError(const lyx::ErrorItem&)':
Warning: the error was not parsed correctly.
The following string was expected to be '.cpp' or '.h':
LyX.cpp: In function 'void lyx::error_handler(int)':
Vincent van Ravesteijn [Wed, 15 May 2013 06:08:33 +0000 (08:08 +0200)]
check_layout: Add more libraries
Vincent van Ravesteijn [Wed, 15 May 2013 05:47:02 +0000 (07:47 +0200)]
GuiAbout: Add missing include
Georg Baum [Wed, 15 May 2013 05:19:49 +0000 (07:19 +0200)]
Implement forced local layouts
These should be used if any new style needs to be introduced in the stable
2.1 series: If the ForceLocal flag of the style is set, it will always be
written to the document header, so that even older 2.1 versions can read
and correctly output the document.
Uwe Stöhr [Tue, 14 May 2013 22:03:46 +0000 (00:03 +0200)]
InsetBox.cpp: remove unnecessary non-ASCII char
- this char made problems when storing the file in Unicode
Uwe Stöhr [Tue, 14 May 2013 21:57:33 +0000 (23:57 +0200)]
UserGuide.lyx: next revision step
sec. 6.13 - 6.18
Vincent van Ravesteijn [Tue, 14 May 2013 16:41:33 +0000 (18:41 +0200)]
Fix check_layout and adhere casing to other tests
- Fixes cases such that it is the same as check_convert, check_filetools, check_listrings,
- Makes the compilation work on MSVC
Vincent van Ravesteijn [Tue, 14 May 2013 15:44:19 +0000 (17:44 +0200)]
Only show the configuration of theme icons on X11
Also hide the ui items in the constructor to prevent flickering.
Vincent van Ravesteijn [Tue, 14 May 2013 15:13:59 +0000 (17:13 +0200)]
qt5: Fix use of zlib using config.h
Vincent van Ravesteijn [Tue, 14 May 2013 15:13:15 +0000 (17:13 +0200)]
Revert "qt5: Fix use of zlib"
This reverts commits
ba3332c6 and
f96583e8 .
Vincent van Ravesteijn [Tue, 8 May 2012 15:55:59 +0000 (17:55 +0200)]
Make the use of system's theme icons configurable
A lyxrc variable is added and a checkbox is added to the LyX->preferences
dialog.
Vincent van Ravesteijn [Wed, 9 May 2012 09:14:08 +0000 (11:14 +0200)]
Use system's theme icons
On X11 Qt offers the possibility to use the system's icons. To this end,
we must link the "lyx command" to a standard action icon as specified in:
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
Kornel Benko [Tue, 14 May 2013 14:23:24 +0000 (16:23 +0200)]
Fix compilation
Kornel Benko [Tue, 14 May 2013 13:34:15 +0000 (15:34 +0200)]
cmake: Try to make layout-tests available for MSVC too
Vincent van Ravesteijn [Sat, 29 Dec 2012 16:29:15 +0000 (17:29 +0100)]
qt5: Fix use of zlib
As Qt5 includes zlib as well, we have to use the same naming convention.
Vincent van Ravesteijn [Sun, 12 May 2013 10:26:44 +0000 (12:26 +0200)]
qt5: Treat wchar_t as a builtin type
Qt5 is compiled treating wchar_t as a builtin type, while Qt4 did not. So,
we have to do the same.
Vincent van Ravesteijn [Sun, 12 May 2013 10:27:16 +0000 (12:27 +0200)]
qt5: Only include a single header to fix compilation
Vincent van Ravesteijn [Tue, 14 May 2013 11:56:31 +0000 (13:56 +0200)]
Fix MSVC warnings
Julien Rioux [Tue, 14 May 2013 09:09:55 +0000 (11:09 +0200)]
Finally also fix #6986 for autotools out-of-source builds.
Julien Rioux [Mon, 4 Feb 2013 14:45:14 +0000 (15:45 +0100)]
configure.py: Check path accessibility before call to os.path.isfile.
If you have an unmounted dir, ac_dir, in your PATH, the call to
os.path.isfile( os.path.join(ac_dir, ac_word + ext) )
hangs. This is probably a python bug, but the result of configure.py
hanging and LyX freezing is really bad, hence this workaround.
According to the python docs, MacOS doesn't provide os.access();
the hasattr protection is used for this reason.
Kornel Benko [Tue, 14 May 2013 09:17:50 +0000 (11:17 +0200)]
Add test for Layout::write() on cmake too
(For now runns only on unix platforms using gcc)
Uwe Stöhr [Tue, 14 May 2013 00:26:22 +0000 (02:26 +0200)]
GuiMathMatrix.cpp: remove an unused header
- sorry, I accidentally added it in the last commit
Uwe Stöhr [Tue, 14 May 2013 00:19:43 +0000 (02:19 +0200)]
GuiMathMatrix.cpp: fix bug #7049
- we should not fill the dialog comboBoxes in the .ui-files