Julien Rioux [Sat, 12 Jan 2013 00:04:07 +0000 (01:04 +0100)]
Force BibTeX rerun upon add/remove/change citation (fixes #6955).
Reordering citations is one case where catching "Citation undefined
on page ..." doesn't catch the need for a bibtex rerun. This patch
ensures the proper ordering is obtained in pdf output without having
to resort to closing and reopening the LyX document.
Georg Baum [Thu, 10 Jan 2013 20:08:39 +0000 (21:08 +0100)]
Add remaining images for math symbol toolbar
Most images are generated by development/tools/generate_symbols_images.py, but
some were drawn manually. Now there is no image missing from the ones the
script can generate.
Georg Baum [Wed, 9 Jan 2013 21:23:07 +0000 (22:23 +0100)]
Handle text-only wasy symbols correctly.
Some macros defined by wasysym.sty work only in text mode: They either
produce an error in math mode, or wrong output. These symbols are now marked
as text symbols, so that no \ensuremath is created for LaTeX export if they
appear inside \text{}, and the correct images are created.
Julien Rioux [Thu, 10 Jan 2013 14:24:53 +0000 (15:24 +0100)]
LyXHTML linking from citation to bib entry for LyX 2.1 (fixes #8490).
What was previously accomplished by wrapCitation is now customizable in the
layout files. What we provide by default here corresponds roughly to the
LyX 2.0 behavior.
Georg Baum [Tue, 8 Jan 2013 20:39:24 +0000 (21:39 +0100)]
Add consistency checks.
development/tools/generate_symbols_images.py now checks for each symbol in
lib/symbols whether its image is listed in lib/Makefile.am and whether it has
a toolbar entry in lib/ui/stdtoolbars.inc.
Julien Rioux [Fri, 4 Jan 2013 22:57:40 +0000 (23:57 +0100)]
Add known citation packages to LaTeXFeatures:
- achicago
- apacite
- apalike
- astron
- authordate
- chicago
- harvard
- mslapa
- named
This allows these citation packages can be Required by the document layout.
LyX handles the package ordering, loading any of these packages before natbib
when both are required by the document layout. For example, apacite can be
used with or without natbib.
The package achicago isn't compatible with natbib out-of-the-box,
but the following compatibility code makes it work:
Uwe Stöhr [Tue, 1 Jan 2013 16:41:32 +0000 (17:41 +0100)]
chkconfig.ltx: add check for etoolbox and change checking order
- the packages which are independent of document classes are checked first - for the case that the Internet connection breaks during the checking/installation of missing packages
Kornel Benko [Tue, 1 Jan 2013 12:23:24 +0000 (13:23 +0100)]
In tex2lyx tests do not compare the first 2 lines.
This removes the need to update the lyx-format of the test files too often.
(To please Vincent and me)
Uwe Stöhr [Mon, 31 Dec 2012 20:17:01 +0000 (21:17 +0100)]
installer: 2 fixes
- LaTeX.nsh: assure that if MiKTeX is installed for all users also the missing packages will be installed during the configuration for all users
- configure.nsh: run configure.py twice to assure that really all missing packages are checked/installed
Uwe Stöhr [Mon, 31 Dec 2012 16:28:50 +0000 (17:28 +0100)]
installer: various fixed for immediate release
- LaTeX.nsh: fix bug that installer stopped working if LyX was installed the first time on a computer
- init.nsh:
- fix failing installation of Slovakian spellcheck dictionary
- expand list of available dictionaries as requested by users
- dictionaries.nsh: prevent case that the installer could run an infinite loop if the installation of dictionaries was interrupted
- settings.nsh: use a HTTP repository for MiKTeX instead of FTP because many companies deny FTP access by default in their firewalls
Julien Rioux [Tue, 26 Jun 2012 21:15:04 +0000 (23:15 +0200)]
Update the lilypond example file.
- Add a note about HTML.
- Add a note about using external files.
- Add a note about using lilypond variables and commands.
- Some corrections and nitpicks.
Julien Rioux [Wed, 27 Jun 2012 11:41:19 +0000 (13:41 +0200)]
lyxpreview: Allow to find python scripts.
In particular, lilypond-book is just a python script. On windows,
we need to call the python interpreter, using the full path to
the script while being wary of spaces in the path.
The old layouts are still there (marked as deprecated). The new ones are more or less correctly reverted (polishment required), but the old ones not yet converted to the new. Once this is done, a further file format change should be made.
Uwe Stöhr [Mon, 31 Dec 2012 02:08:28 +0000 (03:08 +0100)]
Customization.lyx: revision of chapter 5 - port from branch
- uniform formatting, clarifications, simplifications, updates, added missing information
- German Customization.lyx: also translations, added missing information that is already in the other language versions
Georg Baum [Sun, 30 Dec 2012 19:39:33 +0000 (20:39 +0100)]
Fix import of shift-jis and big5 CJK texts.
These encodings were not defined, since they must not be used as document
encodings (the characters {, } and \ may appear in high bytes, and latex
would be confused). However, they are supported by CJK.sty (which uses a
preprocessor to circumvent the limitations of the latex executable). These
encodings are now defined, but used for import in tex2lyx only.
The test case CJK.tex contained fake tests for shift-jis and big5 (the
japanese and chinese characters were entered using the utf8 encoding), and
therefore the wrong interpretation of these encoding looked as if it worked.
The comments about missing iconv support of shift-jis and big5 were wrong as
well (otherwise shift-jis-plain would not work either).
Georg Baum [Sun, 30 Dec 2012 10:58:21 +0000 (11:58 +0100)]
Fix bug #8468: Wrong import of UTF8 CJK.
Actually, the test case showed several problems:
- ERT insets did use layout "Standard", not "Plain Layout"
- The font scale was read correctly, but tex2lyx claimed that it did ignore
the option "scaled=0.95"
- If a third argument of the CJK environment was given, it caused the whole
environment to be put in ERT with a broken encoding. This is now fixed for
the bug test case by using the \font_cjk header variable, but the encoding
problem still exists for unsupported encodings. I'll file a separate bug
for that.
- The CJKutf8 package was not handled in the preamble parsing. Therefore the
chinese comment in the preamble was read with a wrong encoding, and guessing
the document language did not work.
The new file CJKutf8.tex was created by copying and modifying CJK.tex, but
unfortunately it is impossible to tell git to inherit the history of CJK.tex
for the new file (search the web for git svn copy if you want to know details).
Georg Baum [Sat, 29 Dec 2012 12:16:22 +0000 (13:16 +0100)]
Fix tex2lyx bug #8466: special file names.
Special characters as created by latex_path() where not converted corectly
from LaTeX macros by tex2lyx. Now this is done, even for file names containing
double quotes which are not used for quoting spaces. These file names are not
legal on windows, and will causes probelms in DVI files, but if they occur
tex2lyx does not produce invalid .lyx files.
Kornel Benko [Sun, 30 Dec 2012 18:33:20 +0000 (19:33 +0100)]
Added categories for style Standard, Title, Abstract, ShortTitle,
Author, FourAuthors, Affiliation, FourAffiliations, Acknowledgements,
Itemize, Enumerate, Seriate
to layouts, where they were missing. More to follow