From a8c780c3a68a007f347bab71ff7f0d22a59e9fee Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 20 Jan 2024 21:08:05 +0000 Subject: lettrine (20jan24) git-svn-id: svn://tug.org/texlive/trunk@69508 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/lettrine/README.md | 6 ++-- .../doc/latex/lettrine/lettrine-demo-arabic.pdf | Bin 0 -> 13371 bytes .../doc/latex/lettrine/lettrine-demo-arabic.tex | 38 +++++++++++++++++++++ .../doc/latex/lettrine/lettrine-demo-de.pdf | Bin 128252 -> 128252 bytes .../doc/latex/lettrine/lettrine-demo-fr.pdf | Bin 168279 -> 168279 bytes .../doc/latex/lettrine/lettrine-demo-lua.pdf | Bin 74185 -> 73166 bytes .../doc/latex/lettrine/lettrine-xetex-bidi.def | 12 +++++++ Master/texmf-dist/doc/latex/lettrine/lettrine.pdf | Bin 126080 -> 131712 bytes 8 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.pdf create mode 100644 Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.tex create mode 100644 Master/texmf-dist/doc/latex/lettrine/lettrine-xetex-bidi.def (limited to 'Master/texmf-dist/doc/latex/lettrine') diff --git a/Master/texmf-dist/doc/latex/lettrine/README.md b/Master/texmf-dist/doc/latex/lettrine/README.md index 57f41e59ffc..88e1a9e9d44 100644 --- a/Master/texmf-dist/doc/latex/lettrine/README.md +++ b/Master/texmf-dist/doc/latex/lettrine/README.md @@ -33,7 +33,7 @@ This bundle is included in most TeX distributions, but if you need to install it by yourself 1. run luatex on lettrine.dtx to strip the comments and create lettrine.sty and lettrine.cfg; -2. run lualatex on lettrine.dtx to get the documentation (lettrine.pdf). +2. move all the files to the `right' place: Files lettrine.sty, lettrine.cfg, lettrine-*.sty and *.cfl go to to a directory searched by TeX, typically $TEXMF/tex/latex/lettrine. @@ -41,7 +41,7 @@ a directory searched by TeX, typically $TEXMF/tex/latex/lettrine. Files README, lettrine-demo*, lettrine.pdf go to a doc directory, typically $TEXMF/doc/latex/lettrine. -Files lettrine.dtx goes to a source directory, typically +Files lettrine.dtx goes to a source directory, typically $TEXMF/source/latex/lettrine Changes @@ -50,5 +50,5 @@ Changes See the included manual lettrine.pdf, section "Change History". -- -Copyright 1999--2023 Daniel Flipo +Copyright 1999--2024 Daniel Flipo E-mail: daniel (dot) flipo (at) free (dot) fr diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.pdf b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.pdf new file mode 100644 index 00000000000..b2e843d1b74 Binary files /dev/null and b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.pdf differ diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.tex b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.tex new file mode 100644 index 00000000000..0fd17998239 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-arabic.tex @@ -0,0 +1,38 @@ +%%% This example is adapted from +%%% https://tex.stackexchange.com/questions/152184/lettrine-and-arabic-script/ +%%% +%%% This file can be compiled either with LuaLaTeX or XeLaTeX. +%%% The syntax for loading babel slightly differs between Lua- and Xe-LaTeX. +%%% Compiling this file with XeLaTeX works within this directory which holds +%%% a specific version of "lettrine-xetex-bidi.def", or requires to +%%% remove the official file "lettrine-xetex-bidi.def" (v0.8). + +\documentclass{article} +\usepackage{iftex} +\usepackage{fontspec} +\setmainfont{FreeSerif} +\usepackage{lettrine} +\renewcommand{\LettrineTextFont}{\upshape} % No small caps +\renewcommand{\LettrineTestString}{۱‬‬} % No Latin letter +\renewcommand{\LettrineSecondString}{‫ه‬‬‬‫د‬} % No Latin letter +\ifluatex + \usepackage[bidi=basic]{babel} + \babelprovide[import, main]{persian} +\fi +\ifxetex + \usepackage[bidi=bidi-r]{babel} + \babelprovide[import, main]{persian} +\fi +\begin{document} +\lettrine[lines=3]{۱‬‬}{} تقدیم به عالیجناب تئوفیلوس:\\ +تا به حال نویسندگان بسیاری به نوشتن شرح وقایعی كه در بین ما رخ داده است، اقدام کردهاند +تا به حال نویسندگان بسیاری به نوشتن شرح وقایعی كه در بین ما رخ داده است، اقدام کردهاند +تا به حال نویسندگان بسیاری به نوشتن شرح وقایعی كه در بین ما رخ داده است، اقدام کردهاند +\end{document} + +%%% Local Variables: +%%% coding: utf-8-unix +%%% mode: latex +%%% TeX-master: t +%%% TeX-engine: luatex +%%% End: diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-de.pdf b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-de.pdf index 84ba7a43446..f8c0fc77c28 100644 Binary files a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-de.pdf and b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-de.pdf differ diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-fr.pdf b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-fr.pdf index a780c1c0a6e..f85a80ef420 100644 Binary files a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-fr.pdf and b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-fr.pdf differ diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-lua.pdf b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-lua.pdf index a88972db814..a0c3aa3bdc7 100644 Binary files a/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-lua.pdf and b/Master/texmf-dist/doc/latex/lettrine/lettrine-demo-lua.pdf differ diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine-xetex-bidi.def b/Master/texmf-dist/doc/latex/lettrine/lettrine-xetex-bidi.def new file mode 100644 index 00000000000..0f3dbc81200 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lettrine/lettrine-xetex-bidi.def @@ -0,0 +1,12 @@ +%% +%% This is file `lettrine-xetex-bidi.def', by Daniel Flipo, +%% as a replacement for Vafa Khalighi's original (outdated) file. +%% +\ProvidesFile{lettrine-xetex-bidi.def}% + [2024/01/20 v1.0 bidi adaptations for lettrine package for XeTeX engine] +\IfPackageAtLeastTF{lettrine}{2024-01-20}{}% +{\PackageWarning{bidi}{Please upgrade your lettrine package\MessageBreak + to version 2.60 or higher}} +\endinput +%% +%% End of file `lettrine-xetex-bidi.def'. diff --git a/Master/texmf-dist/doc/latex/lettrine/lettrine.pdf b/Master/texmf-dist/doc/latex/lettrine/lettrine.pdf index 0fde23f12d2..2866dec763c 100644 Binary files a/Master/texmf-dist/doc/latex/lettrine/lettrine.pdf and b/Master/texmf-dist/doc/latex/lettrine/lettrine.pdf differ -- cgit v1.2.3