Add printing of list of languages for which hyphenation is enabled

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9354 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2004-12-07 09:38:57 +00:00
parent 3a79aaab3f
commit 38bba4b649
4 changed files with 475 additions and 421 deletions

View File

@ -1,3 +1,8 @@
2004-12-07 Martin Vermeer <martin.vermeer@hut.fi>
* configure.m4: add printout of language list for which
hyphenation is enabled
2004-11-19 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* layouts/memoir.layout: allow 2 optional arguments

View File

@ -219,6 +219,19 @@ else
LATEX=
ac_result="not useable"
fi
# Grab the list of languages avaliable to LaTeX by parsing the LaTeX log file, chklatex.log.
LANGUAGES=`sed -n '/hyphenation patterns/{
:loop
/loaded\.$/!{
$!{
N
s/\n//
s/^.*for\ //
tloop
}
}
/loaded\.$/p
}' chklatex.log`
rm -f chklatex.ltx chklatex.log])dnl
dnl
# Search LaTeX2e
@ -523,6 +536,11 @@ changequote(,)dnl
echo "creating doc/LaTeXConfig.lyx"
echo "s/@chk_linuxdoc@/$chk_linuxdoc/g" >> chkconfig.sed
echo "s/@chk_docbook@/$chk_docbook/g" >> chkconfig.sed
# Add a line to chkconfig.sed so that the placeholder in
# LaTeXConfig.lyx.in will be replaced by the list of available
# languages.
test "${LANGUAGES}" != "" && \
echo "s/@chk_languages@/${LANGUAGES}/g" >> chkconfig.sed
sed -f chkconfig.sed "${srcdir}"/doc/LaTeXConfig.lyx.in >doc/LaTeXConfig.lyx
echo "creating $outfile"

View File

@ -1,3 +1,8 @@
2004-12-07 Martin Vermeer <martin.vermeer@hut.fi>
* LaTeXConfig.lyx.in: add printout of language list for which
hyphenation is enabled
2004-12-02 Martin Vermeer <martin.vermeer@hut.fi>
* UserGuide.lyx: document use of texconfig for

View File

@ -1,5 +1,7 @@
#LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
\lyxformat 232
\lyxformat 237
\begin_document
\begin_header
\textclass article
\language english
\inputencoding default
@ -7,14 +9,12 @@
\graphics dvips
\paperfontsize 0
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\papersize default
\paperpackage none
\use_geometry false
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\use_jurabib 0
\use_bibtopic 0
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 2
\tocdepth 3
@ -25,9 +25,11 @@
\papercolumns 1
\papersides 1
\paperpagestyle plain
\tracking_changes 0
\tracking_changes false
\end_header
\begin_body
\begin_layout Title
Inventory of your LaTeX configuration
@ -2105,6 +2107,29 @@ Table of contents
if you want to use non-English quotes.
\end_layout
\begin_deeper
\begin_layout Subsubsection*
Languages for which hyphenation patterns are loaded:
\end_layout
\begin_layout Standard
@chk_languages@
\end_layout
\begin_layout Standard
If a language you use is not on this list, you should reconfigure your LaTeX
installation to include it.
For teTeX, this means running
\family typewriter
texconfig
\family default
.
\end_layout
\end_deeper
\begin_layout Subsection
color
@ -2720,4 +2745,5 @@ url
is needed by LyX to be able to output url's corrently.
\end_layout
\end_body
\end_document