5

While writing an Amharic poem, I got the following

enter image description here

I don't want the extra space on the right. What can I do? Here is my code:

\documentclass[preview]{standalone}

\usepackage[english]{babel}

\babelprovide[import, onchar = fonts ids, hyphenrules = +, % Use empty patters ]{amharic}

\babelposthyphenation{amharic}{([ሀሁሂሃሄህሆለሉሊላሌልሎሏሐሑሒሓሔሕሖሗመሙሚማሜምሞሟሠሡሢሣሤሥሦሧረሩሪራሬርሮሯሰሱሲሳሴስሶሷሸሹሺሻሼሽሾሿቀቁቂቃቄቅቆቈቊቋቌቍበቡቢባቤብቦቧቨቩቪቫቬቭቮቯተቱቲታቴትቶቷቸቹቺቻቼችቾቿኀኁኂኃኄኅኆኈኊኋኌኍነኑኒናኔንኖኗኘኙኚኛኜኝኞኟአኡኢኣኤእኦኧከኩኪካኬክኮኰኲኳኴኵኸኹኺኻኼኽኾወዉዊዋዌውዎዐዑዒዓዔዕዖዘዙዚዛዜዝዞዟዠዡዢዣዤዥዦዧየዩዪያዬይዮደዱዲዳዴጼጽጾጿፀፁፂፃፄፅፆፈፉፊፋፌፍፎፏፐፑፒፓፔፕፖፗ])}{ { no = {1}, post = {1} } }

\babelfont[amharic]{rm}{FreeSerif}

\usepackage{newunicodechar}

\newunicodechar{፡}{፡\hskip0pt plus 3pt\relax} \newunicodechar{።}{።\hskip0pt plus 3pt\relax}

\begin{document}

\noindent ላባ ላረጉልን የመከራ ሸክሙን\newline ቀልደው ላሳቁን፣ ተጫውተው ላከሙን\ በቸከ ዘመን ላይ ሰጋ ለበስ ትንግርት ሁነው ላስደመሙን\ ቺርስ!\

(አዳምኤል)

\end{document}

Maryà
  • 4,830

1 Answers1

7

@daleif's suggestion to employ the varwidth option of the standalone document class works. :-) I would, in addition, employ the option border=1pt.

enter image description here

\documentclass[preview,border=1pt,varwidth]{standalone}

\usepackage[english]{babel} \babelprovide[import, onchar = fonts ids, hyphenrules = +, % Use empty patters ]{amharic} \babelposthyphenation{amharic}{([ሀሁሂሃሄህሆለሉሊላሌልሎሏሐሑሒሓሔሕሖሗመሙሚማሜምሞሟሠሡሢሣሤሥሦሧረሩሪራሬርሮሯሰሱሲሳሴስሶሷሸሹሺሻሼሽሾሿቀቁቂቃቄቅቆቈቊቋቌቍበቡቢባቤብቦቧቨቩቪቫቬቭቮቯተቱቲታቴትቶቷቸቹቺቻቼችቾቿኀኁኂኃኄኅኆኈኊኋኌኍነኑኒናኔንኖኗኘኙኚኛኜኝኞኟአኡኢኣኤእኦኧከኩኪካኬክኮኰኲኳኴኵኸኹኺኻኼኽኾወዉዊዋዌውዎዐዑዒዓዔዕዖዘዙዚዛዜዝዞዟዠዡዢዣዤዥዦዧየዩዪያዬይዮደዱዲዳዴጼጽጾጿፀፁፂፃፄፅፆፈፉፊፋፌፍፎፏፐፑፒፓፔፕፖፗ])}{ { no = {1}, post = {1} } } \babelfont[amharic]{rm}{FreeSerif}

\usepackage{newunicodechar} \newunicodechar{፡}{፡\hskip0pt plus 3pt\relax} \newunicodechar{።}{።\hskip0pt plus 3pt\relax}

\begin{document}

ላባ ላረጉልን የመከራ ሸክሙን\newline ቀልደው ላሳቁን፣ ተጫውተው ላከሙን\newline በቸከ ዘመን ላይ ሰጋ ለበስ ትንግርት ሁነው ላስደመሙን\newline ቺርስ!

(አዳምኤል) \end{document}

Mico
  • 506,678