diff options
author | Norbert Preining <norbert@preining.info> | 2022-03-15 03:01:13 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-03-15 03:01:13 +0000 |
commit | d6f947fa36ed3b76d36a8dfad4e9247319b4d622 (patch) | |
tree | d93c155716ae9f33281f8558bdef659ff71555a9 /language/vietnamese/vntex/source/doc/tests/test-babel.tex | |
parent | 9754713ebfdd18985b356efe48892afe656e3d37 (diff) |
CTAN sync 202203150301
Diffstat (limited to 'language/vietnamese/vntex/source/doc/tests/test-babel.tex')
-rw-r--r-- | language/vietnamese/vntex/source/doc/tests/test-babel.tex | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/language/vietnamese/vntex/source/doc/tests/test-babel.tex b/language/vietnamese/vntex/source/doc/tests/test-babel.tex new file mode 100644 index 0000000000..fdf0d66e5f --- /dev/null +++ b/language/vietnamese/vntex/source/doc/tests/test-babel.tex @@ -0,0 +1,59 @@ +% Copyright 2003-2005 Han The Thanh <hanthethanh@gmx.net>. +% This file is part of vntex. License: LPPL, version 1.3 or newer, +% according to http://www.latex-project.org/lppl.txt + +\documentclass[openany]{book} +\IfFileExists{ucs.sty} +{\usepackage{ucs} % only needed when utf8x input encoding is being used + \usepackage[utf8x,utf8]{inputenc}} +{\usepackage[utf8]{inputenc}} + % inputenc must be loaded explicitly + % with options `utf8x' and `utf8' since + % we test both inputencodings + % simultaneously +\usepackage[vietnam,english]{babel} + +\usepackage{multicol} % needed for testing accent commands +\usepackage[colorlinks]{hyperref} % let's try vietnamese with hyperref +\input{pd1supp.def} % supplement for characters missing in PD1 encoding + % (used for PDF bookmarks) + +\begin{document} +\selectlanguage{vietnam} +\title{\bfseries Test of Vietnamese support for \LaTeX{} using \texttt{babel}} +\author{H\`an Th\'\ecircumflex{} Th\`anh} +\maketitle + +\tableofcontents +\listoffigures + +\chapter{Test input encodings} +\section{Test of VISCII encoding support} +\inputencoding{viscii} +\input{test-viscii} + +\section{Test of TCVN encoding support} +\inputencoding{tcvn} +\input{test-tcvn} + +\section{Test of UTF8 encoding support} +\inputencoding{utf8} +\input{test-utf8} + +\IfFileExists{ucs.sty}{% +\section[Test of UTF8x encoding support] + {Test of UTF8x encoding support (of the Unicode package)} +\inputencoding{utf8x} +\input{test-utf8} +}{\typeout{^^JWARNING: File ucs.sty not found, skipping test.^^J}} + +\clearpage +\appendix + +\chapter{Test of Vietnamese captions} +\input{test-captions} + +\chapter{Test of accent commands for T5 encoding} +\input{test-accents} + +\end{document} |