Text FormattingText wrapping initial letter

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
cusirura
Posts: 1
Joined: Tue Jan 26, 2021 5:17 am

Text wrapping initial letter

Post by cusirura »

Since I have a problem using babel with lettrine, I found out a way to use initial letters as lettrine does, but I can't place the text nicely around the capital letter, as shown below:

Code: Select all

\documentclass[dvips,a4paper,greek,hebrew,italian,10pt]{book}
     
         \usepackage{ucs}
         \usepackage[utf8]{inputenc}
         \usepackage[LGR,HE8,T1]{fontenc}
         \def\HeblatexEncoding{HE8}
         \def\HeblatexEncodingFile{he8enc}
     
     
         \makeatletter
         \let\l@hebrew\l@nohyphenation
         \makeatother
     
     
         \usepackage[greek,hebrew,italian]{babel}
         \usepackage{float}
         \usepackage{subfigure}
         \usepackage{pstricks}
         \usepackage{caption}
         \usepackage[pdftex]{graphicx}
         \usepackage{epstopdf}
         \usepackage{aurical}
         \usepackage{wesa}
         \usepackage{inslrmin}
         \usepackage{uncial}
         \usepackage{gfsartemisia-euler}
         \usepackage{aurical}
         \usepackage{amsmath}
         \usepackage{amssymb}
         \usepackage{eufrak}
         \usepackage{psfrag}
         \usepackage{longtable}
         \usepackage{array}
         \usepackage{xcolor}
         \usepackage{colortbl}
         \usepackage{stmaryrd}
         \usepackage{mathbbol}
         \usepackage{bm}
         \usepackage{multirow}
         \usepackage{lscape}
         \usepackage{caption}
         \usepackage{rotating}
         \usepackage{makeidx}
         \usepackage{refstyle}
         \usepackage{cjhebrew}
         \usepackage{hebfont}
         \usepackage{fancyhdr}
         \usepackage{lgreek}
         \usepackage{multicol}
         \usepackage{cancel}
         \usepackage{setspace}
         \usepackage{fix-cm}
         \usepackage{textcomp}
         \usepackage{anyfontsize}
         \usepackage{titlesec, blindtext, color}
         \usepackage{mathtools}
         \usepackage{blindtext}
         \usepackage{lettrine}
     
    \input Rothdn.fd
    \newcommand*\initfamily{\usefont{U}{Rothdn}{xl}{n}}
     
    \begin{document}
    {{\fontsize{80}{90}\initfamily{
    P}}} \blindtext
     
    \end{document}
Is there a way to wrap that initial letter with the text that follows it?
If you're having trouble finding quality porn in Spanish, we've collected all the best here https://pornogratisaqu.com/

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Text wrapping initial letter

Post by Ijon Tichy »

Only some short notes, because your code is very problematic.
  • First of all, you're using gobal option dvips but package option pdftex. That is a very, very contradictive. You should remove both options.
  • Package ucs should only be used, if you cannot avoid it. If you really, really need it, it is usually loaded by the coding option of inputenc. As you are using utf8, it should not be needed. The package is known as troublemaker and can break other packages. From LaTeX 2018-04-01 even \usepackage[utf8]{inputenc} is not needed.
  • Package subfigure is outdated for decades. See the linked page for more information about alternatives.
  • Instead of loading xcolor and colortbl you should load package xcolor with option table. See the manual for more information.
  • You should not load packages more than once.
  • It makes no sense to load color, if xcolor is already loaded.
And please try to make a more minimal Infominimal working example. Maybe this would even lead you to the problem. Because I don't think, that the combination of babel + initials is a general problem. The cfr-initials manual uses this combination and

Code: Select all

documentclass[a4paper,greek,hebrew,italian]{book}% 10pt is default
\usepackage[utf8]{inputenc}% not needed with LaTeX >= 2018/04/01

\usepackage[LGR,HE8,T1]{fontenc}
\def\HeblatexEncoding{HE8}% Not used in this example, but copied from your one, …
\def\HeblatexEncodingFile{he8enc}% … because I do not know anything about hebrew writing.

\usepackage{babel}% The language options are already set by \documentclass.

\usepackage{lettrine}
\usepackage{Rothdn}% Recommended for using the Rothdn font.
\renewcommand*{\LettrineFontHook}{\Rothdnfamily}% See lettrine and cfr-initials manual.

\usepackage{blindtext}

\begin{document}
\lettrine{L}{orem} ipsum. \blindtext
\end{document}
seems to work too.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply